Below is my configuration file
receivers:
filelog:
include: [ "/var/log/newcrm/el-t25crm.healthians.co.in-2024-02-*.log" ]
start_at: beginning
include_file_path: true
include_file_name: false
poll_interval: 200ms
operators:
# - type: regex_parser
# regex: '^.
(?P<message>{.})'
# output: parsedata
- type: json_parser
id: parsedata
parse_from: attributes.message
- type: move
from: attributes["message"]
to: body
- type: time_parser
parse_from: attributes.time
layout: '%Y-%m-%d,%H:%M:%S %z'
# layout_type: gotime
processors:
batch:
send_batch_size: 10000
send_batch_max_size: 11000
timeout: 10s
exporters:
otlp/log:
endpoint:
http://slog001.echl.in:4317
tls:
insecure: true
service:
pipelines:
logs:
receivers: [filelog]
processors: [batch]
exporters: [otlp/log]