Created
June 19, 2020 16:14
-
-
Save adnanrahic/b5f3caf5a3c88b131bca122096043ea4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
options: | |
# print stats every 60 seconds | |
printStats: 60 | |
# don't write parsed logs to stdout | |
suppress: true | |
# Enable/disable GeoIP lookups | |
# Startup of logagent might be slower when downloading the GeoIP database | |
geoipEnabled: false | |
# Directory to store Logagent status and temporary files | |
# this is equals to LOGS_TMP_DIR env variable | |
diskBufferDir: /tmp/sematext-logagent | |
input: | |
# a list of glob patterns to watch files to tail | |
files: | |
- '/var/log/**/*.log' | |
inputFilter: | |
- module: input-filter-k8s-containerd | |
output: | |
# index logs in Elasticsearch or Sematext Logs | |
sematext: # output a name, e.g., elasticsearch, sematext, etc. | |
module: elasticsearch | |
url: https://logsene-receiver.sematext.com | |
# indices for shipping logs to multiple locations | |
indices: | |
<LOGS_TOKEN_1 or ES_INDEX_1>: | |
# list of log sources or filenames | |
- your_log_glob | |
<LOGS_TOKEN_2 or ES_INDEX_2>: | |
# list of RegEx matching a log source or filename | |
- ibm_log_collection* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment