-
Hi, I'm trying to use this cool library to send logs to a cloud-based loki instance using log4j2 I expected to see a configuration field like the following: How does this library send messages to loki? Through the gRPC protocol? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi, thanks for kind words. Sorry, I should have documented that better. Is it Grafana cloud you are connecting to? I wanted to try it out myself and document it, I'll make that a priority. Now back to your question - tjahzi does http POST to <url>http://host:port/loki/api/v1/push</url> you can do:
and it should work all the same. Please let me know if I can help or modify something on my end. |
Beta Was this translation helpful? Give feedback.
-
There is a new release with support for https and basic auth: https://github.com/tkowalcz/tjahzi/releases/tag/tjahzi-parent-0.9.6. I have added test case to the CI that integrates with Grafana Cloud. Also run a logger for several hours that delivered logs there. Seems to work fine :) |
Beta Was this translation helpful? Give feedback.
Hi, thanks for kind words. Sorry, I should have documented that better. Is it Grafana cloud you are connecting to? I wanted to try it out myself and document it, I'll make that a priority.
Now back to your question - tjahzi does http POST to
/loki/api/v1/push
. So instead ofyou can do:
and it should work all the same. Please let me know if I can help or modify something on my end.