Hello <#C01HWQ1R0BC|> , We have setup Signoz Enterprise for Traces and Logs. But we are not getting ...
n
Hello #C01HWQ1R0BC , We have setup Signoz Enterprise for Traces and Logs. But we are not getting proper logs. I have enabled traces for a service create. I can see, there is an error but unable to get any logs: Also, at some places I'm getting traces but not full trace logs. Getting only limited trace result. Can someone please help me on this? This is urgent.
h
What language/framework are you on and what environment is your Signoz installed in? We use signoz-k8s-infra which by default just pulls pod logs which aren't correlated with traces. Our NodeJS stack needed to switch our logging to a framework (Winston) with an OTel transport so that it sends JSON events directly that also include the context's Trace IDs for log/trace correlation. After that we disabled the duplicate pod logs.
n
@Hien Le We are having Spring-boot application. We have set up Signoz on our Tomcat application which is on Ubuntu machines.
h
Looks like you DO have some correlated logging in that 3rd screenshot. Have you tried removing the date range filter? My requests are very short and sometimes the generated time range is too restrictive. Can you find the logs if you remove the
traceId
filter? When clicking into Log Details take a look at
trace_id
and/or
log.file.path
attribute: the former shows a correlated log sent by the Java framework, while the latter means it was picked up by a file scraper which would lack the request context. The Spring Boot setup guides also suggest checking the above by filtering logs on
service.name
.
n
I have open trace and checked logs related to trace. So date/time is not an issue. Also, I have checked specific logs of service.name but still not getting proper logs..
h
So we see SOME logs in your screenshots, can you determine if it's only a certain subset that's missing? Have you also configured specifically for log4j2 or logback? The best process for figuring out what's wrong (the screenshots don't tell us much, asides from things aren't working) is to itemize exactly what pages you've followed and what steps you've carried out (exact commands, etc).
n
We have setup below configuration on our Spring Boot application: OTEL_INSTRUMENTATION_COMMON_HTTP_CAPTURE_ATTRIBUTES="http.url" OTEL_TRACES_EXPORTER=otlp
h
The docs in that section also mention needing to define an exporter env-var for logs:
Copy code
OTEL_LOGS_EXPORTER=otlp \
Which logging library are you using? you might also need to setup explicit OTel appenders, again it's linked above (for log4j2 vs logback) and worth giving a try.
n
Let me try this as well.
This resolved my one issue. But Still in Traces, I'm not getting full process logs..