If you use logstash to collect logs in your stack with this tutotrial you will be able to send logs from logstash to SigNoz.
At SigNoz we use opentelemetry collector to recieve logs which supports the TCP protocol. So you can forward your logs from your logstash agent to opentelemetry collector
Add fluentforward reciever to your
otel-collector-config.yamlwhich is present inside
Here we have used port 2255 for listing in TCP protocol, but you can change it to a port you want. You can read more about tcplog reciver here.
Update the pipleline for logs and make the following change in
receivers: [ otlp, tcplog/logstash ]
processors: [ batch ]
exporters: [ clickhouselogsexporter ]
Here we are adding our clickhouse exporter and creating a pipeline which will collect logs from
tcplog/logstashreceiver, processing it using batch processor and export it to clickhouse.
Change the logstash config to forward the logs to otel collector.
codec => json_lines # this is required otherwise it will send eveything in a single line
host => "otel-collector-host"
port => 2255
In this example we are generating sample logs and then forwarding them to the otel collector which is listening on port 2255.
otel-collector-hosthas to be replaced by the host where otel-collector is running. For more info check troubleshooting.
Once you make this changes you can restart logstash and SignNoz, and you will be able to see the logs in SigNoz.