在需要对Matomo进行故障排查的时候,我们可能会用到以下日志:
- 追踪器日志:它可以帮助我们排查追踪过程的问题或者优化追踪过程。
- 打开Matomo后台日志:默认情况下Matomo日志是直接呈现在UI上的。如果你需要额外详细的日志,或者想讲日志存储到文件中,你可以通过配置config.ini.php来实现,如下:
以上日志相关配置项也可以在config/global.ini.php中找到。
[log]
; Possible values are “screen” (default value), “file” and “database” (logs to tables logger_*)
log_writers[] = file
; Possible values are ERROR, WARN, INFO, DEBUG
log_level = WARN
; if configured to log to file, log entries will be written to this file
logger_file_path = tmp/logs/matomo.log
重要提示:
- Monolog插件必须被激活
- 一旦启用了日志,你可以很容易地通过LogViewer插件查看和搜索日志。
- 你还可以启用SQL logging & profiling,以查看Matomo执行的SQL语句,按照上面的方法启用日志到screen,然后修改config.ini.php并增加下面几行
- 欢迎加入Matomo中文网官方QQ群255820112(点击滚动至本页末可扫描二维码),随时提问,有问必答。
[Debug]
enable_sql_profiler = 1
Matomo(Piwik)可以输出所有的SQL查询语句,同时会将查询语句汇总去重复。同时给出查询的总时间以及每个查询的平均时间。
排查追踪器故障
为了能够验证数据是否被正确追踪,你可以打开追踪器(piwik.php)的故障排查开关.
打开开关后,追踪请求不再显示1pxX1px的透明GIF图,而是显示追踪日志消息。基于安全的原因,不建议在生产环境这样做,或只允许在生产环境打开很短的时间。
请按照下面的步骤启用追踪器开关和查看排障日志:
- 在path/to/piwik/config/config.ini.php中,添加或修改以下两行
[Tracker]
debug = 1
- 查看发往Matomo服务器的HTTP请求:
- 如果请求发生在浏览器中,你可以使用Firebug查看所有发往piwik.php的请求。
- 如果请求是直接从你的手机应用或软件发出的,你可以输出或将追踪请求写入日志中。
- 你也可以将日志消息写入到文件或者数据库
如果你收到了很多追踪请求,造成日志无法查看的话,你可以启用只对特定请求启用排障模式。请在config.ini.php中添加或修改以下两行:
[Tracker]
debug_on_demand = 1
然后日志系统只会记录带有&debug=1参数的请求,为了安全起见,只能启用很短时间。
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your article helped me a lot, is there any more related content? Thanks!
I pay a quick visit everyday some web sites and websites too read content,
but this blog presents quality based articles. http://boyarka-Inform.com/
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
celebrex pharmacy prices: Pharm Express 24 – mexican pharmacy online medications
how to get viagra pills buy generic viagra without a prescription online canadian pharmacy viagra
viagra price in india: discount viagra – buy sildenafil generic online
real viagra: buy women viagra online – where can you get generic viagra
brand viagra from canada: VGR Sources – super viagra online
viagra 25 mg price: viagra buy in usa – viagra cheap fast delivery
sildenafil prescription canada viagra medication online where can i buy sildenafil tablets
viagra generic sale: VGR Sources – viagra for sale mexico
price for viagra in canada: buy 10 viagra pills – viagra 1000mg
https://vgrsources.com/# viagra pills online in india
where to buy viagra online uk: VGR Sources – viagra 100mg tablet online purchase in india
order viagra online without prescription VGR Sources viagra price in south africa
100mg sildenafil coupon: VGR Sources – where to buy viagra cheap
viagra otc canada: generic viagra in the usa – generic viagra coupon
viagra tablets over the counter VGR Sources 50 mg viagra price
viagra cost per pill: average price of viagra – otc viagra for women
generic viagra medication: viagra generic brand – order sildenafil online without prescription
https://vgrsources.com/# buy viagra online rx
where can i buy sildenafil tablets: viagra canada order – purchasing viagra
sildenafil 50 mg tablet price in india viagra generic canada price where to purchase viagra online
otc viagra for women: viagra soft canada – generic sildenafil 20mg cost
generic sildenafil 25 mg: viagra online shop – online drugstore viagra
viagra sale online viagra 25 mg price medication viagra online
can i order viagra from canada: VGR Sources – how much is viagra in australia
buy generic viagra online australia: VGR Sources – 25mg viagra
https://vgrsources.com/# how much is sildenafil
711 viagra pills viagra prescription price us online pharmacy generic viagra
where to get real viagra online: VGR Sources – sildenafil 50mg india
cheap generic viagra: VGR Sources – how to get sildenafil online
viagra tablets 50 mg online: VGR Sources – best online viagra canada
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
how do i get viagra without a prescription VGR Sources india sildenafil
buy viagra online fast shipping: VGR Sources – where to buy viagra pills online
canadian medicine viagra: order sildenafil online – sildenafil nz cost
viagra prescription online: VGR Sources – buy generic viagra online free shipping
https://vgrsources.com/# sildenafil 100 no prescription
viagra for sale fast shipping: sildenafil pills from mexico – viagra fiyatı 50mg
generic viagra best online pharmacy cheap viagra uk viagra no prescription canada
generic viagra singapore: cheap genuine viagra online – buy generic viagra online in usa
buy female viagra usa: sildenafil 5 mg price – female viagra pill price in india
viagra 50mg online: VGR Sources – sildenafil 25 mg price in india
cheap sildenafil 20 mg VGR Sources viagra in usa
buy genuine viagra online: VGR Sources – viagra 100mg tablet price
https://vgrsources.com/# viagra pharmacy generic
female viagra singapore: online viagra tablet canada – female viagra canada
buy cheap generic viagra online real viagra online canada can i buy generic viagra
buy generic viagra online safely: VGR Sources – where can you buy viagra pills
female viagra tablet price: VGR Sources – buy viagra online without a prescription
best viagra for women VGR Sources sildenafil 50 mg online uk
female viagra pill prescription: VGR Sources – canada brand viagra
can i buy viagra over the counter usa: how to get viagra prescription – can you buy viagra in usa
canadian pharmacy real viagra: VGR Sources – where to buy sildenafil uk
generic viagra 100mg uk cheap viagra online usa buy viagra online price
where to buy sildenafil citrate online: india viagra online – sildenafil 25 mg daily
cost of viagra australia: VGR Sources – viagra 100mg tablet online purchase in india
female viagra uk pharmacy: VGR Sources – online sildenafil usa
best place buy viagra online: non prescription viagra – canadian pharmacy brand viagra
buy viagra online canada with mastercard: VGR Sources – viagra substitutes
https://vgrsources.com/# average price of 100mg viagra
viagra pills: order viagra from canada – low price viagra
crestor images CrestorPharm CrestorPharm
Best price for Crestor online USA: rosuvastatin fda warning – CrestorPharm
Buy cholesterol medicine online cheap: Buy statins online discreet shipping – CrestorPharm
Order rosuvastatin online legally CrestorPharm Crestor Pharm
LipiPharm: Lipi Pharm – No RX Lipitor online
https://prednipharm.com/# prednisone for sale without a prescription
Rybelsus online pharmacy reviews: semaglutide cost without insurance – SemagluPharm
Predni Pharm: PredniPharm – PredniPharm
Crestor Pharm CrestorPharm crestor side effects
should crestor be taken in the morning or at night: Crestor Pharm – CrestorPharm
prednisone 7.5 mg: prednisone 20mg prescription cost – Predni Pharm
semaglutide interactions: Semaglu Pharm – rybelsus 3 mg reviews
can lipitor cause ed Lipi Pharm Lipi Pharm
CrestorPharm: Crestor Pharm – Crestor Pharm
rybelsus availability: rybelsus for non diabetics – SemagluPharm
Lipi Pharm: what is atorvastatin generic for – FDA-approved generic statins online
SemagluPharm Semaglu Pharm SemagluPharm
Semaglu Pharm: Semaglu Pharm – Rybelsus online pharmacy reviews
CrestorPharm: Crestor Pharm – Over-the-counter Crestor USA
https://crestorpharm.shop/# Buy cholesterol medicine online cheap
cheap prednisone 20 mg Predni Pharm PredniPharm
rosuvastatin and depression: Crestor Pharm – Crestor Pharm
Lipi Pharm: LipiPharm – Online statin drugs no doctor visit
PredniPharm average cost of generic prednisone Predni Pharm
prednisone over the counter cost: 20mg prednisone – prednisone 1 mg for sale
buy cheap prednisone: prednisone 2.5 mg cost – Predni Pharm
PredniPharm: can i buy prednisone online without a prescription – prednisone 0.5 mg
http://lipipharm.com/# do i need to follow a certain diet while taking lipitor
CrestorPharm Crestor home delivery USA CrestorPharm
PredniPharm: PredniPharm – Predni Pharm
CrestorPharm: crestor anxiety – Safe online pharmacy for Crestor
cheaper alternative to rybelsus: Semaglu Pharm – rybelsus 3 mg price
CrestorPharm Online statin therapy without RX п»їBuy Crestor without prescription
Crestor Pharm: Rosuvastatin tablets without doctor approval – Order rosuvastatin online legally
PredniPharm: PredniPharm – Predni Pharm
Order cholesterol medication online Discreet shipping for Lipitor LipiPharm
PredniPharm: PredniPharm – prednisone medication
Хочу поделиться полезным: недавно поняла, что можно заказать алкоголь даже в 2 часа ночи. Нашла алкоголь на дом 24 благодаря YouTube-ролику про доставки в Москве . Привезли быстро, никаких задержек. Теперь только так и заказываю.
LipiPharm: Generic Lipitor fast delivery – Lipi Pharm
crestor to lipitor LipiPharm No RX Lipitor online
magnesium glycinate and crestor: Order rosuvastatin online legally – rosuvastatin (crestor)
No RX Lipitor online: best time of day to take atorvastatin – do you lose weight on lipitor
CrestorPharm is rosuvastatin and atorvastatin the same Crestor 10mg / 20mg / 40mg online
http://crestorpharm.com/# CrestorPharm
Discreet shipping for Lipitor: Lipi Pharm – lipitor and anxiety
SemagluPharm SemagluPharm п»їBuy Rybelsus online USA
PredniPharm: Predni Pharm – Predni Pharm
http://semaglupharm.com/# SemagluPharm
Predni Pharm prednisone price canada Predni Pharm
FDA-approved Rybelsus alternative: rybelsus 3 mg cost – Semaglu Pharm
Buy statins online discreet shipping: Crestor Pharm – is rosuvastatin a lipophilic statin
http://semaglupharm.com/# Online pharmacy Rybelsus
buy prednisone canadian pharmacy: prednisone 7.5 mg – prednisone cost us
CrestorPharm No doctor visit required statins CrestorPharm
what foods should be avoided when taking crestor?: rosuvastatin medication – Crestor Pharm
https://semaglupharm.com/# SemagluPharm
https://semaglupharm.com/# Semaglu Pharm
Алкоголь по Москве — не проблема, если знаешь где! доставка алкоголя по москве — гарантируем оперативность, качество и внимание к каждому клиенту. В наличии всё: от эконом до элиты. Заказывайте прямо сейчас — и начните правильно.
semaglutide doses in units: Semaglu Pharm – rybelsus (semaglutide tablets)
Online statin therapy without RX Online statin therapy without RX best time to take crestor cholesterol medicine
Lipi Pharm: is atorvastatin safe – does atorvastatin
https://semaglupharm.com/# SemagluPharm
Lipi Pharm: LipiPharm – Lipi Pharm
CrestorPharm can you stop taking crestor without side effects Crestor Pharm
CrestorPharm: Crestor Pharm – crestor lawsuit
https://semaglupharm.com/# Semaglu Pharm
https://semaglupharm.com/# nausea semaglutide
will lipitor make you tired: LipiPharm – atorvastatin and neuropathy
LipiPharm No RX Lipitor online Lipi Pharm
SemagluPharm: compounded semaglutide expiration – how rybelsus works
https://semaglupharm.shop/# why am i not losing weight on semaglutide
how to buy prednisone: PredniPharm – cost of prednisone 40 mg
prednisone 5 mg brand name 1 mg prednisone cost where can i get prednisone
http://semaglupharm.com/# SemagluPharm
CrestorPharm: does crestor cause hair loss – Rosuvastatin tablets without doctor approval
https://crestorpharm.com/# Crestor home delivery USA
Semaglu Pharm: weight loss on rybelsus – how much semaglutide to take
https://semaglupharm.com/# is rybelsus expensive
LipiPharm buy lipitor uk Atorvastatin online pharmacy
what are the side effects of lipitor: No RX Lipitor online – does lipitor cause hair loss
SemagluPharm: rybelsus wiki – rybelsus 3mg price
https://semaglupharm.com/# No prescription diabetes meds online
order prednisone with mastercard debit prednisone buy PredniPharm
Order rosuvastatin online legally: Crestor Pharm – CrestorPharm
https://semaglupharm.com/# SemagluPharm
semaglutide for weight loss in non diabetics dosage: SemagluPharm – Online pharmacy Rybelsus
http://prednipharm.com/# purchase prednisone
PredniPharm PredniPharm steroids prednisone for sale
PredniPharm: purchase prednisone 10mg – prednisone in canada
https://semaglupharm.shop/# Affordable Rybelsus price
CrestorPharm: Safe online pharmacy for Crestor – CrestorPharm
Predni Pharm where can i get prednisone Predni Pharm