diff --git a/eidas-proxy-1.test.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-json-input.conf b/eidas-proxy-1.test.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-json-input.conf new file mode 100644 index 00000000..4f0b4d87 --- /dev/null +++ b/eidas-proxy-1.test.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-json-input.conf @@ -0,0 +1,8 @@ +[[inputs.tail]] + files = ["/var/log/eidas_stats.log"] + data_format = "json" + tag_keys = ["type","timestamp","connectorEntityId","requesterId","loaMatching","connectorCountry","spType","requestedLoa","eidasResponseLoA","eidasRequestId","eidasResponseId","principal","nationalAssertionId","nationalRequestId","nationalIdP","eIDASAssertionIssueTime","eidasAssertionId"] + json_name_key = "type" + json_time_key = "timestamp" + json_time_format = "unix_ms" + json_timezone = "Local" diff --git a/global/overlay/etc/puppet/cosmos-rules.yaml b/global/overlay/etc/puppet/cosmos-rules.yaml index 4ce58d99..69eb343d 100644 --- a/global/overlay/etc/puppet/cosmos-rules.yaml +++ b/global/overlay/etc/puppet/cosmos-rules.yaml @@ -1113,6 +1113,7 @@ log-1.sveidas.se: autoupdate: eid::dockerhost: version: '5:20.10.7~3-0~ubuntu-bionic' + eid::telegraf: servicemonitor: prid: version: 1.0.4