I'm using filebeat with IIS module to send the logs to logstash and then output them to elasticsearch. I would like to differentiate between the logs in kibana, preferably by customer name.
I've seen that filebeat adds log.file.path as metadata. Is there anyway to add a field with the customers name based on the log.file.path?
I agree the filebeat documentation for the dissect processor is a bit thin.
I can recommend reading the documentation for the logstash dissect filter plugin which explains in more details how it works and how it can be used to extract information from fields/strings. https://www.elastic.co/guide/en/logstash/current/plugins-filters-dissect.html
There is also a blog post here:
I'm not saying that filebeat implementation is exactly the same as logstash though.
I don't know.
You should open an issue on github about the documentation for the filebeat dissect processor because it is indeed lacking.
If the implementation is the same, it could include a link to the logstash dissect. It could also mentions the differences if there are any.
For testing purposes I've a log path which looks like the following: C:\customer\u_ex160121.log
I had to use double \ to esacpe the backslash otherwise filebeat wont start.
I run logging.level: debug but I can't see any trace that any dissection is happening at all.
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.