So, i think, the better way to find who's giving an error is to start with DATA patterns %{DATA:date}\\t%{DATA:IGP}\\t%{DATA:pppoeuser}\\t%{DATA:Interface}\\t%{GREEDYDATA:tac_message}
And adding one by one the patterns you want until logstash show one error.
I made a mistake in my last post, about your first pattern of INTERFACE. I tell,
It's false, your pattern literaly tell "i search a digit or a slahs or a digit or a slahs..." 4 times. I still think the pattern i recommand you fit more your data.
Logstash is already showing _grokparsefailure when using only DATA pattern for date.
Just going by following pattern will not give an error. So the date format has to be the problem.
%{GREEDYDATA:tac_message}
I already recognized that there are two spaces between month and day. That's why I used
My logstash runs inside a docker container and I mount the pattern via docker-compose. Everytime I edited the conf or pattern I removed the container and created a new one. Than I checked the files inside the container if they are correct. Can you tell me what permissions the pattern file needs? Maybe the user inside the container is not allowed the read the file?
Maybe it helps when I create a new conf file and a new pattern file..
So I installed a new Logstash instance without Elasticsearch and Kibana in a different vm and everything works fine with the sample log from above and follwoing configuration:
I think, if it is a problem of permission, an error will be write in logsatsh log file.
You have to give permission to user or group logstash to access the file. chmod -R logstash /path/to/patterns
If you can't change access to files, grok have an option named pattern_definitions (example here).
I found my problem.. i was just looking at message field from Logstash output and I was trying to parse the message. But the acutal log which is getting shipped by Filebeat has a different format..
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.