Slackbot
10/21/2022, 3:20 AMPranay
nitya-signoz
10/21/2022, 4:16 AMSAMEEL .N
10/21/2022, 4:17 AMnitya-signoz
10/21/2022, 4:19 AMSAMEEL .N
10/21/2022, 4:20 AMnitya-signoz
10/21/2022, 4:24 AMSAMEEL .N
10/21/2022, 4:53 AMSAMEEL .N
10/21/2022, 6:34 AMAnkit Nayan
Ankit Nayan
interesting fields
and selected fields
SAMEEL .N
10/21/2022, 7:45 AMAnkit Nayan
Query Builder
in the dashboard sectionAnkit Nayan
histogram_quantile(0.9, sum(rate(signoz_latency_bucket{service_name="frontend", operation="HTTP GET /dispatch"}[5m])) by (le))
Ankit Nayan
0.9
=> p90
service_name
=> apply your service name
operation
=> event/operation/api nameAnkit Nayan
Ankit Nayan
SAMEEL .N
10/24/2022, 6:04 AMSAMEEL .N
10/24/2022, 3:44 PM/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.55.0/fileconsumer/file.go:113
2022-10-24T15:42:37.005Z error fileconsumer/file.go:197 Failed creating fingerprint {"kind": "receiver", "name": "filelog", "pipeline": "logs", "component": "fileconsumer", "error": "reading fingerprint bytes: read /var/log/nginx/access.log: is a directory"}
I am trying get logs to Signoz using otel-collector-config.yaml
My otel-collector-config.yaml file is
receivers:
filelog:
include: [ /var/log/nginx/access.log ]
start_at: beginning
operators:
- type: json_parser
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%d,%H:%M:%S %z'
- type: move
from: attributes.message
to: body
- type: remove
field: attributes.time
processors:
batch:
send_batch_size: 10000
send_batch_max_size: 153600
timeout: 10s
exporters:
otlp/log:
endpoint: <http://XXXXXXX:4317>
tls:
insecure: true
service:
pipelines:
logs:
receivers: [filelog]
processors: [batch]
exporters: [ otlp/log ]
SAMEEL .N
10/24/2022, 6:23 PMAnkit Nayan
"error": "reading fingerprint bytes: read /var/log/nginx/access.log: is a directory"
cc: @nitya-signozSAMEEL .N
10/25/2022, 4:43 AM/var/log/nginx/access.log
ia not a directory , Its nginx log file @Ankit NayanSAMEEL .N
10/25/2022, 8:05 AMFailed to process entry {"kind": "receiver", "name": "filelog", "pipeline": "logs", "operator_id": "json_parser", "operator_type": "json_parser", "error": "ReadMapCB: expect { or n, but found [, error found in #1 byte of ...|[24/Oct/202|..., bigger context ...|[24/Oct/2022:06:46:47 +0000] <http://XXX.XXX.XXX.XXX|XXX.XXX.XXX.XXX> - - 20|...", "action": "send", "entry": {"observed_timestamp":"2022-10-25T07:57:33.427082373Z","timestamp":"0001-01-01T00:00:00Z","body":"[24/Oct/2022:06:46:47 +0000] 162.158.162.219 - - 200 0.085 60 MISS [YYY] \"WWW.WWW.WWW.WWW\" \"GET /context1/context2/context3/context4/context5 HTTP/2.0\"","attributes":{"log.file.name":"access.log"},"severity":0,"scope_name":""}}
nitya-signoz
10/25/2022, 8:07 AM