I am missing lot of logs from signoz, is there a way to find out why this is happening? I associate ...
d
I am missing lot of logs from signoz, is there a way to find out why this is happening? I associate logs with traces, and even though traces are present, many times logs are not there. I am having k8s deployment, and sending logs from node.js application using pino-otel-transporter https://github.com/pinojs/pino-opentelemetry-transport
@nitya-signoz @Srikanth Chekuri will you guys have any idea?
n
Please share more details, like is it the first time you are instrumenting the application or it was working previously and suddenly stopped working due to a change/upgrade that you made?
d
we are already using the instrumentation and signoz for more than 2 months in production, and we have always observed some missing logs. But now we are seeing that it is happening little bit more frequently. With traces I don’t observe this drop, but with logs it is much more evident
n
Did you check logs of otel-collector which emits that it is dropping data?
d
any particular keywords I should look for?
n
look for “drop/dropping/failed”
d
nope, not able to find any such thing in logs
I am thinking it might be because of issue during sending itself, since I am using application layer (pino transporter) is writing to disk, and then using otel agent a better way?
n
There is a metric named
otelcol_exporter_send_failed_log_records
, which you can scrape from otel collector to see if it has dropped any log.
d
no failed records here as well
n
then there is some issue with instrumentation layer, you will have to locally reproduce it to debug it.
d
is writing to disk, and then using otel agent a better way?
for instrumentation, can you suggest what is the general best practice?
n
using the SDK is always better as it natively transforms the data, the last resort should be using files.
d
understood
n
Try checking what kind of logs are missing to get a better idea if it’s certain logs or random.
d
mostly error logs, as we check for error logs from traces
we rarely check for good logs, so not sure if they are missing or not