sematext / logagent-js

Extensible log shipper with input/output plugins, buffering, parsing, data masking, and small memory/CPU footprint
https://sematext.com/logagent
Apache License 2.0
389 stars 79 forks source link

Added matchSource for `journald-format` #270

Closed adnanrahic closed 3 years ago

adnanrahic commented 3 years ago

This PR adds a matchSource config option to make sure you can match only journald logs to the journald-format outputFilter. Eg:

outputFilter:
  journald-format:
    module: journald-format
    # Run Logagent parser for the message field
    parseMessageField: true
    # JS regular expression to match log source name
    matchSource: !!js/regexp journald