I want to use a multiline config for some of my logs (/var/log/containers/celery-*.log), and another multiline config for all other logs (/var/log/containers/ -everything except celery- * logs).
I'd like to keep the wildcard definition instead of listing all logs file so it stays dynamic.
The easiest approach is probably using the include_files / exclude_files options. You would specify two container inputs with the same path as you currently have, then in one of them add include_files: ['celery-*.log'] (which will cause it to ignore all files that don't match that pattern) and in the other exclude_files: ['celery-*.log']. Then you can customize the input settings for each case as you like.
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.