8 months ago
I am trying to gain insights into my application logs. I set up the Grafana Stack template. I can connect to my Postgresql instance and query it but I can not see any logs. I try a Loki query and do not find any logs. I tried setting up Locomotive but it fails with "error parsing config".
Can you help? I would like to be able to view the logs from my application server and database server.
8 Replies
8 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open chandrika • 8 months ago
8 months ago
Hello, may I ask which template you are using?
I have used this template (https://railway.com/deploy/faP63Y), and it will successfully provide with the three types of OTLP data, namely logs/metrics/traces
wangxuedong
Hello, may I ask which template you are using?I have used this template (https://railway.com/deploy/faP63Y), and it will successfully provide with the three types of OTLP data, namely logs/metrics/traces
8 months ago
Thanks for the tip, I will try that.
I was using the Grafana Stack template (https://railway.com/deploy/8TLSQD) and found that it was not connecting to log sources.
8 months ago
Great, I have experience using the template I recommend. If you have any questions, feel free to consult me at any time.
wangxuedong
Great, I have experience using the template I recommend. If you have any questions, feel free to consult me at any time.
7 months ago
Thanks for the offer.
I did a fresh install of the Grafana OpenTelemetry Stack. I can log into Grafana and see that some of the Prometheus metrics are viewable but I am unable to see any logs. I'm on the Explore page, trying a Loki query for all apps {app=~".+"} or all hosts {host=~".+"}. I do not see any logs.
What am I doing wrong? Is there some configuration that needs to be done? The template didn't require any setup or configuration for it to install.
Attachments
7 months ago
Did you integrated the OTLP sdk at the application layer? Without integration, logs/traces data cannot be collected.
7 months ago
For the detail settings at app side you can see it at the template specification: https://railway.com/deploy/faP63Y
7 months ago
Finally, if you can see the following logs in the http logs of the otel-collector service, then all the data you want should be available
Attachments
wangxuedong
Finally, if you can see the following logs in the http logs of the otel-collector service, then all the data you want should be available
7 months ago
Thank you for the tips. I will look into that.