I am using logstash to ingest multiple application logs into elasticsearch. I have setup the filter to ingest logs which are working fine.
For one application I need to index the log file line by line, without any mapping/filtering, can someone tell me how I can do that from logstash filter. I cannot seem to find any filter that would do it.
Thanks for the reply, I understand what your are saying, although I have already applied a filter in my logstash filter section which works based on condition, since I do need to filter the logs coming from my other applications.
My output section is common which only connects to the elasticsearch api, please see my config file below:
As you can see, I have tried to ingest logs from application "pythoncron" line by line without any filter, and I have attempted this by putting some sort of generic filter (message" => "%{DATA:data} ) which does not seem to be working correctly.
So not sure if I can implement your suggestion above in my "output" section based on the conditions. Or may be I do not understand your suggestion completely
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.