i'm currently playing with hint-based autodiscovery in kubernetes. So far my tests with an nginx-deployment seem to work fine, except that the logline appears twice in elasticsearch.
One time as "message", the other time as nginx-parsed output.
Is there a way to only log the parsed log with hint-based discovery?
Where does your nginx put your logs? Have you enabled the nginx module?
It is possible that your logs are duplicated, because you have configured both the nginx module and the log input of Filebeat to read the logs. If yes, please make sure that you only configure a file once, otherwise it can lead to problems in state handling.
You can validate my theory by checking if the duplicated events have fileset.module and fileset.name keys with values.
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.