Add config for sending proxy log to influxdb.

This commit is contained in:
Fredrik Kjellman 2022-05-10 13:08:28 +02:00
parent 6b17a4930d
commit 0984df066b
4 changed files with 56 additions and 2 deletions

View file

@ -1,6 +1,7 @@
local0.* -/var/log/eidas_audit.log
local1.* -/var/log/eidas_fticks.log
local2.* -/var/log/eidas_process.log
local3.* -/var/log/eidas_proxy.log
$template messageOnlyProxy,"%msg%\n"
local3.* -/var/log/eidas_proxy.log; messageOnlyProxy
$template messageOnly,"{\"type\":%msg%\n"
local4.* -/var/log/eidas_stats.log; messageOnly

View file

@ -6,3 +6,29 @@
json_time_key = "timestamp"
json_time_format = "unix_ms"
json_timezone = "Local"
files = ["/var/log/eidas_proxy.log"]
data_format = "json"
tag_keys = ["type",
"timestamp",
"connectorEntityId",
"requesterId",
"loaMatching",
"connectorCuntry",
"spType",
"requestedLoa",
"eidasResponseLoA",
"eidasRequestId",
"eidasResponseId",
"principal",
"nationalAssertionId",
"nationalRequestId",
"nationalIdP",
"eIDASAssertionIssueTime",
"eidasAssertionId"]
json_time_key = "timestamp"
json_time_format = "unix_ms"
json_timezone = "Local"
[[processors.parser]]
parse_fields = ["message"]
merge = "override"
data_format = "json"

View file

@ -1,6 +1,7 @@
local0.* -/var/log/eidas_audit.log
local1.* -/var/log/eidas_fticks.log
local2.* -/var/log/eidas_process.log
local3.* -/var/log/eidas_proxy.log
$template messageOnlyProxy,"%msg%\n"
local3.* -/var/log/eidas_proxy.log; messageOnlyProxy
$template messageOnly,"{\"type\":%msg%\n"
local4.* -/var/log/eidas_stats.log; messageOnly

View file

@ -6,3 +6,29 @@
json_time_key = "timestamp"
json_time_format = "unix_ms"
json_timezone = "Local"
files = ["/var/log/eidas_proxy.log"]
data_format = "json"
tag_keys = ["type",
"timestamp",
"connectorEntityId",
"requesterId",
"loaMatching",
"connectorCuntry",
"spType",
"requestedLoa",
"eidasResponseLoA",
"eidasRequestId",
"eidasResponseId",
"principal",
"nationalAssertionId",
"nationalRequestId",
"nationalIdP",
"eIDASAssertionIssueTime",
"eidasAssertionId"]
json_time_key = "timestamp"
json_time_format = "unix_ms"
json_timezone = "Local"
[[processors.parser]]
parse_fields = ["message"]
merge = "override"
data_format = "json"