-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help with expressions. #3
Comments
The container logs for promtail show this error:
|
To use this middleware, just include GeoIP_Source=XX in output template, and your template is fine. The real issue is that the indent level of pipeline_stages field is wrong, so promtail could not parse it. Please look into |
Thanks for the info. I think I've formatted my yaml correct so I can see stuff importing into loki. I see GeoIP_source, but It doesnt seem to be working.
Middleware is giving this error, which I guess makes sense as it's not a public ip
Here is what gets imported into loki:
|
Try to use = instead of : in the template |
it works!!!! I needed the = instead of : in my template. |
Do you have a grafana dashboard that I can use as an example? |
Does the data fields need to match naming conventions that geomap is looking for? I can't make worldmap or geomap work :) From Grafana: Auto automatically searches for location data. Use this option when your query is based on one of the following names for data fields. |
Hi, I would love to use this, but I dont know how to setup the expression via json.
Here is an example of my json output (json is written to file per line)
{"ct_id":0,"ct_mark":0,"detected_application":303,"detected_application_name":"126.netify.google","detected_protocol":188,"detected_protocol_name":"QUIC","detection_guessed":1,"dhc_hit":true,"digest":"99b10c8d5fa0dd3fdd17abe1bfab5b82bad037f2","first_seen_at":1674703379228,"first_update_at":1674703379228,"host_server_name":"clients2.google.com","ip_nat":false,"ip_protocol":17,"ip_version":4,"last_seen_at":1674703379269,"local_ip":"10.0.5.143","local_mac":"c8:2a:dd:88:de:e3","local_origin":true,"local_port":40180,"other_ip":"142.250.176.14","other_mac":"20:6d:31:11:10:d2","other_port":443,"other_type":"remote","vlan_id":0,"interface":"br-lan","internal":true,"type":"flow"}
Here is my promtail.yml config
The text was updated successfully, but these errors were encountered: