Add section found in QA log server, SC-2522

This part was only present in QA (log.qa.sveidas.se) for some reason.
So will try to add it for test & prod as well to make them look the same.
Old file: log.qa.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-http2.conf
This commit is contained in:
Patrik Holmqvist 2025-03-28 09:14:26 +01:00
parent 49da90c1db
commit d3c7d9e13a
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -14,6 +14,16 @@
omit_hostname = false
[[inputs.system]]
<% if @server_type == 'log' -%>
[[inputs.http_listener_v2]]
service_address = "0.0.0.0:9999"
methods = ["POST"]
data_format = "json"
json_name_key = "tp"
json_time_key = "ts"
json_time_format = "2006-01-02 15:04:05"
json_timezone = "Local"
<% end -%>
[[inputs.tail]]
files = ["/var/log/eidas_stats.log"]
data_format = "json"