Issues with Transmitting Logs from Logstash to Signoz
TLDR Krishnadas struggled to transmit logs from Logstash to Signoz. After a rich dialogue with Prashant and nitya-signoz, the issue was resolved when Krishnadas removed the existing docker container logs receiver and added the filelog receiver for their logs folder.
Jul 26, 2023 (4 months ago)
Krishnadas
08:16 AMThis is my logstash config
input {
file {
path => "/home/iislogs.log"
start_position => "beginning"
}
}
output {
tcp {
port => 2255
host => "localhost"
}
}
Signoz setup is done as per this doc https://signoz.io/docs/userguide/logstash_to_signoz/
What must I be doing wrong here ? Please help
Prashant
08:40 AMKrishnadas
08:42 AMKrishnadas
08:46 AMKrishnadas
09:18 AMKrishnadas
09:56 AMThis is not showing up in Signoz UI either.
I can see the following log in otel collector container. But nothing more.
2023-07-26T09:48:23.883Z info fileconsumer/file.go:192 Started watching file {"kind": "receiver", "name": "filelog", "data_type": "logs", "component": "fileconsumer", "path": "/tmp/python.log"}
Krishnadas
10:57 AMKrishnadas
01:15 PMnitya-signoz
03:29 PMstart_at
: beginning configuration.https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver• For logstash can you share what are the logs of logstash ? also have you exposed the port of otel-collector ?
Krishnadas
03:50 PM1. Yes. New logs are getting written. I am using the same tutorial of python logging as given in Signoz docs
2. Yes. I have exposed the 2255 port on otel collector. Logstash log snippet is attached.
nitya-signoz
03:52 PM• Also please share your otel-collector config
Krishnadas
03:57 PM2. Attached.
nitya-signoz
03:59 PMKrishnadas
04:00 PMKrishnadas
04:48 PMJul 27, 2023 (4 months ago)
Prashant
01:28 AMhard remove of the otel-collector container is required for that.
docker stop <otelcollector-container>
docker rm <otelcollector-container>
docker-compose -f ...
OR
./install.sh
Krishnadas
01:40 AMFunnily enough, I removed the existing docker container logs receiver from the otel-collector-config and just added the filelog receiver for my logs folder and it started working. I will play around a bit and confirm what changed
SigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Removing Default Logs and Collecting Application Logs
Srikanth wanted to remove default logs and collect their application logs. nitya-signoz provided two solutions, and Srikanth chose the second one, which involves editing the ote-collector-config.yaml file.
Logs View Filter Issue and Troubleshooting Logging Configuration
Alex experienced filtering issues in logs view. After troubleshooting with Ankit, they discovered a bug in the otelcollector helm chart and intends to file a PR to fix it.
Troubleshooting and Adding Log Files to SigNoz POC
Noor has requested help with incorporating log files into their SigNoz POC. In collaboration with vishal-signoz and nitya-signoz, they managed to successfully setup and resolve their issues.
Log Monitoring Connection Error in Signoz
Utkarsh encountered a connection error while adding log monitoring using Signoz. nitya-signoz identified the incorrect otlp exporter port and suggested using 4317.
Configuring OTel Collector to Export Data to SigNoz
James asked how to configure the otel collector to send data to SigNoz. Ankit suggested using the otlp exporter in the collector configuration. James found that SigNoz uses its own otel collector and adjusted the port bindings accordingly.