Skip to content

Instantly share code, notes, and snippets.

@adnanrahic
Last active June 23, 2020 16:46
Show Gist options
  • Save adnanrahic/5cdf3271d64dc830e2fb6cfc13dc5e13 to your computer and use it in GitHub Desktop.
Save adnanrahic/5cdf3271d64dc830e2fb6cfc13dc5e13 to your computer and use it in GitHub Desktop.
options:
debug: true
# print stats every 60 seconds
printStats: 10
# don't write parsed logs to stdout
suppress: false
# 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
parser:
patternFiles:
- /etc/logagent/patterns.yml
input:
# a list of glob patterns to watch files to tail
files:
- '/var/log/*.log;/var/log/containers/!(*ibmcloud-kube-audit*.log)'
inputFilter:
- module: input-filter-k8s-containerd
outputFilter:
dropEvents:
module: drop-events
debug: false
filters:
message:
# include: !!js/regexp /error|warn/i
exclude: !!js/regexp /status|ping/i
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
index: token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment