I've deployed Filebeat in the "observability" namespace (with all roles, bindings being set to observability - not sure if this is ok). It starts without issues, but it doesn't discover any inputs.
This is my configuration. I'm new to this so I suspect there's something wrong with it, but I don't know what (documentation seems all over the place)
Thanks Chris. That's where I got my start, but I wanted to control how indices were created and I couldn't figure out how to do that with the out of the box version - I couldn't find if and how I can extract more data from matching, like I could from autodiscover (and such I could add extra fields that were used in the output section).
I see an extra input key in your config that I don't think should be there could you try to remove it?
Also in order to go from the provided example to your specific case please try step by step and verify each step/addition/modification works before moving the final big configuration which is hard to troubleshoot.
2020-10-27T15:02:43.523Z INFO log/input.go:152 Configured paths: [/var/log/containers/*-10c3cfbf1dd9be7845c604466ae6ff626d257294908aca42c377f201c8f1e98a/*.log]
2020-10-27T15:02:43.523Z INFO input/input.go:114 Starting input of type: container; ID: 9603579383151076722
2020-10-27T15:02:43.523Z ERROR [autodiscover] cfgfile/list.go:96 Error creating runner from config: No paths were defined for input accessing config
Well, I figured out there was a small typo with the path expression (after manually logging into the node and looking at the logs). I could never get fields to work, which was messing with the index creation, but luckily I had all the info in the kubernetes object, so I used that. The docs should state that you kinda need to enable symlinks in order for the whole thing to work, otherwise files will be skipped (could not understand initially why some worked and others didn't, until I started Filebeat with debug logs)
Thanks for the input here! I'm afraid enabling symlinks is not the common case for all environments and hence it wouldn't help to have it mentioned in the docs since it could be misleading. Checking the logs should be of help in such cases as happened with your case.
Hi @ChrsMark. I won't contradict you on how common this scenarios is - it's not really my specialty. Thanks for your help though, it really got me going.
For anyone having issues with this, it's key to start the Filebeat container with debug logs. That will show you a lot of things going wrong (like the symlinks, like how it couldn't push events - which I then traced to a failing substitution in the index name).
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.