Differentiate telegraf conf depending on server type, SC-2522
This commit is contained in:
parent
c9795317c2
commit
29d4b1fe4e
1 changed files with 7 additions and 0 deletions
|
@ -29,11 +29,18 @@
|
|||
tag_keys = ["type", "principal", "data_eidasResponseLoA", "data_requesterId", "data_requestedLoa", "data_connectorCuntry", "data_connectorEntityId", "data_nationalIdP", "data_loaMatching", "data_spType", "data_eIDASAssertionIssueTime", "data_requestedLoa" ]
|
||||
[inputs.tail.tags]
|
||||
influxdb_database = "proxy"
|
||||
<% if @server_type == 'log' -%>
|
||||
[[processors.parser]]
|
||||
parse_fields = ["message"]
|
||||
merge = "override"
|
||||
data_format = "json"
|
||||
<% end -%>
|
||||
|
||||
<% if @server_type == 'proxy' -%>
|
||||
[[outputs.file]]
|
||||
files = ["/var/log/eidas_stats.log"]
|
||||
data_format = "json"
|
||||
<% end -%>
|
||||
[[outputs.influxdb_v2]]
|
||||
urls = <%= @influx_urls %>
|
||||
token = "<%= @influx2_token %>"
|
||||
|
|
Loading…
Add table
Reference in a new issue