Slackbot
10/10/2022, 5:02 AMChủ Huỳnh Minh
10/10/2022, 5:07 AMreceivers:
tcplog/logstash:
max_log_size: 1MiB
listen_address: "0.0.0.0:2255"
attributes: {}
resource: {}
add_attributes: false
operators: []
------
service:
...
logs:
receivers: [otlp, filelog/dockercontainers, tcplog/logstash]
processors: [ batch ]
exporters: [ clickhouselogsexporter ]
• In logstash config:
output {
tcp {
codec => json_lines # this is required otherwise it will send eveything in a single line
host => "my-otelcollector-host-private-IP"
port => 2255
}
}
I also mapped port 2255 -> 2255 for otel-collector in docker-compose as wellPranay
nitya-signoz
10/10/2022, 6:15 AMChủ Huỳnh Minh
10/10/2022, 10:19 AMblock in start_workers'"]}
Chủ Huỳnh Minh
10/10/2022, 10:20 AM{
"@timestamp":"$time_iso8601",
"hostname":"$hostname",
"source":"$server_addr",
"client":"$remote_addr",
...
"request_length":$request_length,
"protocol":"$server_protocol",
"upstreamhost":"$upstream_addr",
}
Chủ Huỳnh Minh
10/10/2022, 10:24 AMnitya-signoz
10/10/2022, 10:27 AMChủ Huỳnh Minh
10/11/2022, 2:30 AMChủ Huỳnh Minh
10/11/2022, 3:14 AM2022-10-11T03:13:02.876Z error tcp/tcp.go:282 Scanner error {"kind": "receiver", "name": "tcplog/logstash", "pipeline": "logs", "operator_id": "tcp_input", "operator_type": "tcp_input", "error": "bufio.Scanner: token too long"}
Chủ Huỳnh Minh
10/11/2022, 3:55 AM