Created
March 18, 2024 20:26
-
-
Save oleewere/9c2de7bdeb0c363de6d5383c9ee91b06 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
receivers: | |
filelog: | |
include: ["/var/log/redis/redis.log"] | |
start_at: beginning | |
operators: | |
- type: file_input | |
include: ["/var/log/redis/redis.log*"] | |
start_at: beginning | |
watch_poll_interval: 15s | |
- type: multiline | |
regex: '^\d+:[A-Z]' # Matches lines that start with the process ID and role, e.g., "1307:M" | |
multiline_flush_interval: 100ms | |
- type: regex_parser | |
regex: '^(?P<process_id>\d+):(?P<role>[A-Z]) (?P<timestamp>\d{2} \w{3} \d{4} \d{2}:\d{2}:\d{2}.\d{3}) (?P<log_level>\*) (?P<message>.*)$' | |
timestamp: | |
parse_from: attributes.timestamp | |
layout_type: gotime | |
layout: '02 Jan 2006 15:04:05.000' | |
processors: | |
batch: | |
exporters: | |
logging: | |
loglevel: info | |
service: | |
pipelines: | |
logs: | |
receivers: [filelog] | |
processors: [batch] | |
exporters: [logging] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment