Hello everybody, I use logstash to grok logs line.
For exemple one of these lines is :
INFO;0000;000003;* /data/EDT/batchs/files/logs/WKF998MT-20180621-20180621-1301.log *
I use a first grok to cut in 3 field this event like that :
match => { "message" => [ "%{WORD:TYPE};%{DATA:ID1};%{NUMBER:ID2};%{GREEDYDATA:DESCRIPTION}" ] }
So now :
"description" => * /data/EDT/batchs/files/logs/WKF998MT-20180621-20180621-1301.log *
So I grok this line with grok debugger like that :
%{WORD:NOM_BATCH}-%{BASE16NUM:DATE_JOURNEE_BATCH}-%{BASE16NUM:DATE_EXECUTION_BATCH}-%{BASE16NUM:HEURE_EXECUTION_BATCH}
Result :
{
"NOM_BATCH": [
"WKF998MT"
],
"DATE_JOURNEE_BATCH": [
"20180621"
],
"DATE_EXECUTION_BATCH": [
"20180621"
],
"HEURE_EXECUTION_BATCH": [
"1301"
]
}
It's correct. But on Kibana, I've got a _grokparsefailure on this line....
I precise : This same grok work very well for my others log lines for exemple these lines :
ACT003MT-20180606-20180607-0014.log
RLC006MT-20180509-20180511-0228.log
RLC004-20180530-20180530-2236.log
WKF999-20180422-20180422-1937-34-120.log
WKF997-20180622-20180622-2127-42-9000-03-20180622-212829.log
It's very strange, can you help me?