Saroja Murthy
07/16/2023, 10:42 AM16:04:19.678 INFO --- [erListUpdater-0] c.c.a.config.SpringProfileConfig : Using local profile
I have referred https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/filelogreceiver/README.md and added the following to otel-collector-config.yaml
include: [ "/tmp/tomcat.log" ]
start_at:
include_file_path: true
include_file_name: false
operators:
- type: regex_parser
regex: '^(?P<time>\d{2}-[A-Za-z]{3}-\d{2} \d{2}:\d{2}:\d{2}.\d{3}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%d %H:%M:%S'
severity:
parse_from: attributes.sev
But it isnt working as expected. Can someone please help ?Prashant Shahi
07/17/2023, 7:58 AMnitya-signoz
07/17/2023, 8:00 AMnitya-signoz
07/17/2023, 8:02 AMSaroja Murthy
07/23/2023, 8:55 AM