I'm trying to get the grok pattern for the following web log line:
[2020-12-14 10:44:57,598: INFO/ForkPoolWorker-1] Task celery.chord_unlock[1f93d444-835f-4ff4-b730-915b0f17f9ab] retry: Retry in 1s
and this is the pattern I've got:
%{DATESTAMP:timestamp},%{INT:pid}:s%{DATA:loglevel}%{GREEDYDATA:message}
which simulates this:
{
"timestamp": [
"20-12-14 10:44:57"
],
"pid": [
"598"
],
"loglevel": [
""
],
"message": [
"INFO / ForkPoolWorker-1] Task celery.chord_unlock [1f93d444-835f-4ff4-b730-915b0f17f9ab] retry: Retry in 1s"
]
}
question from:
https://stackoverflow.com/questions/65935640/celery-django-weblogs-grok-pattern 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…