ok, need some help.
1. with windows server app logs written to a share, what's the preferred way to get those into signoz? these systems are vmware VMs in our DC, and our signoz systems are in our much larger AWS environment. i was going to simply mount the share (either NFS or SMB) to the signoz system for this POC.
2. following the instructions here (
https://signoz.io/docs/userguide/collect_logs_from_file/), i just copied the logs over to the system, and configured the
docker-compose.yaml
and
otel-collector-config.yaml
files to point to a single log file, but i get the following when i view the logs for the otel-collector container:
{"level":"fatal","timestamp":"2024-03-04T17:29:06.159Z","caller":"signozcollector/main.go:72","msg":"failed to create collector service:","error":"failed to create server client: failed to create collector config: failed to upsert instance id failed to parse config file /var/tmp/collector-config.yaml: yaml: line 166: did not find expected key","stacktrace":"main.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/cmd/signozcollector/main.go:72\nruntime.main\n\t/opt/hostedtoolcache/go/1.21.7/x64/src/runtime/proc.go:267"}
here is my corresponding config block:
logs:
receivers: [otlp, tcplog/docker, filelog]
processors: [batch]
exporters: [clickhouselogsexporter]
filelog:
include: [/cloudadmins/logs/OTHER/D202306/M5WEB_PRESENTATION_COMMON_CSILOGON.ASPX_638224444396847090_0.txt]
start_at: beginning