Bradley Melton
12/10/2024, 5:55 PMBradley Melton
12/10/2024, 6:02 PMreceivers:
syslog:
udp:
listen_address: "0.0.0.0:514"
tcp:
listen_address: "0.0.0.0:601"
protocol: rfc3164
location: America/Chicago
operators:
- type: move
from: attributes.message
to: body
-----
logs:
receivers: [otlp, tcplog/docker, syslog]
processors: [batch]
exporters: [clickhouselogsexporter]
Bradley Melton
12/10/2024, 6:04 PMotel-collector:
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.14}
container_name: signoz-otel-collector
command:
[
"--config=/etc/otel-collector-config.yaml",
"--manager-config=/etc/manager-config.yaml",
"--copy-path=/var/tmp/collector-config.yaml",
"--feature-gates=-pkg.translator.prometheus.NormalizeName"
]
user: root # required for reading docker container logs
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
- ./otel-collector-opamp-config.yaml:/etc/manager-config.yaml
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /:/hostfs:ro
environment:
- OTEL_RESOURCE_ATTRIBUTES=host.name=signoz-host,os.type=linux
- LOW_CARDINAL_EXCEPTION_GROUPING=false
ports:
# - "1777:1777" # pprof extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
# - "8888:8888" # OtelCollector internal metrics
# - "8889:8889" # signoz spanmetrics exposed by the agent
# - "9411:9411" # Zipkin port
# - "13133:13133" # health check extension
# - "14250:14250" # Jaeger gRPC
# - "14268:14268" # Jaeger thrift HTTP
# - "55678:55678" # OpenCensus receiver
# - "55679:55679" # zPages extension
- "514:514/udp" #standard syslog
- "601:601/tcp" #cisco standard tcp syslog
restart: unless-stopped
depends_on:
clickhouse:
condition: service_healthy
otel-collector-migrator-sync:
condition: service_completed_successfully
query-service:
condition: service_healthy
Srikanth Chekuri
12/10/2024, 8:13 PMBradley Melton
12/10/2024, 8:14 PMSrikanth Chekuri
12/10/2024, 8:16 PMBradley Melton
12/10/2024, 8:23 PM{
"level": "error",
"timestamp": "2024-12-10T20:21:43.198Z",
"caller": "opamp/server_client.go:268",
"msg": "Collector failed for restart during rollback",
"component": "opamp-server-client",
"error": "failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s):\n\nerror decoding 'exporters': unknown type: \"debug\" for id: \"debug\" (valid values: [clickhousemetricswrite clickhousemetricswritev2 clickhousetraces syslog carbon cassandra clickhouselogsexporter prometheusremotewrite logging otlphttp alertmanager awss3 kafka zipkin file googlecloudpubsub rabbitmq prometheus pulsar signozkafkaexporter otlp awskinesis loadbalancing opencensus])",
"stacktrace": "<http://github.com/SigNoz/signoz-otel-collector/opamp.(*serverClient).reload|github.com/SigNoz/signoz-otel-collector/opamp.(*serverClient).reload>\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/opamp/server_client.go:268\ngithub.com/SigNoz/signoz-otel-collector/opamp.(*agentConfigManager).applyRemoteConfig\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/opamp/config_manager.go:173\ngithub.com/SigNoz/signoz-otel-collector/opamp.(*agentConfigManager).Apply\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/opamp/config_manager.go:159\ngithub.com/SigNoz/signoz-otel-collector/opamp.(*serverClient).onRemoteConfigHandler\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/opamp/server_client.go:209\ngithub.com/SigNoz/signoz-otel-collector/opamp.(*serverClient).onMessageFuncHandler\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/opamp/server_client.go:199\ngithub.com/open-telemetry/opamp-go/client/types.CallbacksStruct.OnMessage\n\t/home/runner/go/pkg/mod/github.com/open-telemetry/opamp-go@v0.5.0/client/types/callbacks.go:162\ngithub.com/open-telemetry/opamp-go/client/internal.(*receivedProcessor).ProcessReceivedMessage\n\t/home/runner/go/pkg/mod/github.com/open-telemetry/opamp-go@v0.5.0/client/internal/receivedprocessor.go:131\ngithub.com/open-telemetry/opamp-go/client/internal.(*wsReceiver).ReceiverLoop\n\t/home/runner/go/pkg/mod/github.com/open-telemetry/opamp-go@v0.5.0/client/internal/wsreceiver.go:57\ngithub.com/open-telemetry/opamp-go/client.(*wsClient).runOneCycle\n\t/home/runner/go/pkg/mod/github.com/open-telemetry/opamp-go@v0.5.0/client/wsclient.go:243\ngithub.com/open-telemetry/opamp-go/client.(*wsClient).runUntilStopped\n\t/home/runner/go/pkg/mod/github.com/open-telemetry/opamp-go@v0.5.0/client/wsclient.go:265\ngithub.com/open-telemetry/opamp-go/client/internal.(*ClientCommon).StartConnectAndRun.func1\n\t/home/runner/go/pkg/mod/github.com/open-telemetry/opamp-go@v0.5.0/client/internal/clientcommon.go:197"
}
Srikanth Chekuri
12/10/2024, 8:29 PMlogging
Bradley Melton
12/10/2024, 8:34 PMexporters:
logging: {}
If so, it didn't give me any new information when I check the logs. 😕Bradley Melton
12/10/2024, 8:44 PMexporters:
logging:
verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200
But that still didn't give me more info when I check the logs.Bradley Melton
12/10/2024, 9:01 PMSrikanth Chekuri
12/10/2024, 9:10 PMBradley Melton
12/10/2024, 9:17 PMBradley Melton
12/11/2024, 2:51 PMudplog:
listen_address: "0.0.0.0:415"
And now the logs are showing up.
I think it's actually better to send the logs from this device to a separate port since it's my firewall logs and I want to add a regex to pull src_ip, dst_ip, rule_name, etc.