telegraf installation in prod log servers

This commit is contained in:
Maria Haider 2020-04-29 17:36:58 +02:00
parent 04ace7f317
commit 93b0e76695
Signed by: mariah
GPG key ID: 7414A760CA747E57
6 changed files with 29 additions and 11 deletions

View file

@ -741,6 +741,8 @@ md-eu1.qa.komreg.net:
autoupdate:
konsulter:
eidas_log:
eid::dockerhost:
eid::telegraf
sunet::rsyslog:
udp_port: 514
udp_client: 94.176.224.0/24

View file

@ -1,14 +1,6 @@
/var/log/eidas_fticks.log {
rotate 30
daily
missingok
notifempty
delaycompress
compress
su root syslog
}
/var/log/eidas_stats.log {
/var/log/eidas_fticks.log
/var/log/eidas_stats.log
{
rotate 30
daily
missingok

View file

@ -0,0 +1,4 @@
---
influxdb2_token: ENC[PKCS7,MIIDDwYJKoZIhvcNAQcDoIIDADCCAvwCAQAxggJmMIICYgIBADBKMD0xCzAJBgNVBAYTAlNFMQ4wDAYDVQQKDAVTVU5FVDEOMAwGA1UECwwFRVlBTUwxDjAMBgNVBAMMBWxvZy0xAgkA8nnsoONsSSwwDQYJKoZIhvcNAQEBBQAEggIADWJgyp2j5MFBnyi96MD1ikJp6G0Ol8VwWyTOFpjvy9Verd/231VZgHm/f/FYwsQpdg3z4oGGN1uN9ykk6NJJpf9Ls8J7BJ9vZupzDPeK3pEIi4B8+EZSAWtOC2xnZhRySReWblN0ZTiONXYaGPxl+oy9Ytq9SdC9UknyNdQJNctQPqhhsiXi5cfIDU4nsson4e1SEXWYWjN0E+S4ytxbP9XGN3CMp2ZVh6woZjwKP5HaCK8GMcUZqw4dTASqNVehUX/5dlKj0xI80UHTHqPHqCly/itYUHNBRMKArxM5qvRVIdk3gxwkqThcXiLqpOFtwNEWRyHboyXBRswk8gzSDjJ085gm4TteiFfB+URKUtpPTwXztFfP/4v5HnEadbmah3BVPeGz39EKf0y5cv0fhfAt1ggdl6Tp0lvnPNn4BAC5v2GI/ocGYyfWGWgHRtpi/XEY/Mu2X9WNV0RjvgwhTq7k/wduwTkjhHXXMqwMvEjhhtlqwR+EJ4sPwWqIFZg6JVlqAn5ZLIFmnGRrPtFHrxZuw4hlCrkr+OlH/tZ+Qv2gn3/B9fqVTxtg10FUeSt1GZZk2zI/D5JKeOyKoZG3qUlrYAlWH0xLHgjfv1uuqv/0LOC2lv2NCsVqoUPSSsymjEL9TBePJgaDsnu9gKPUsO4/gkbxOib83R9SU8+FpAgwgYwGCSqGSIb3DQEHATAdBglghkgBZQMEASoEEIS5G8ZLDaI5Y6QbeUCVu76AYJKFq2lsrbTM3TYdngzNSIuFIeHPF1f9kF9m4oD1slKLOt0Y1rSP1pqOEPUpchTpUTJPB5zpsT2hRBVfmziltwoOpJou/ztSKqQgYawlra5G05pAeIkaRklgpq/1qAf83w==]

View file

@ -0,0 +1,8 @@
[[inputs.tail]]
files = ["/var/log/eidas_stats.log"]
data_format = "json"
tag_keys = ["requester","country"]
json_name_key = "type"
json_time_key = "timestamp"
json_time_format = "unix_ms"
json_timezone = "Local"

View file

@ -0,0 +1,4 @@
---
influxdb2_token: ENC[PKCS7,MIIDDwYJKoZIhvcNAQcDoIIDADCCAvwCAQAxggJmMIICYgIBADBKMD0xCzAJBgNVBAYTAlNFMQ4wDAYDVQQKDAVTVU5FVDEOMAwGA1UECwwFRVlBTUwxDjAMBgNVBAMMBWxvZy0yAgkArNfCT2Xiw0EwDQYJKoZIhvcNAQEBBQAEggIAC9Ywvj4/mZT++Xt1SOGuTG/FtbLXF+IucV4Gm8jVBY/Y4wLwx37FV+DPLfafB/GF0XK7cI6gx0cS7zDpEqfVmWie7/Fklz1J//67msA00MDm6TfIhZo99aRjOFDhEvR8kS8izCifu+O/aRJ4xmHkbXzCvdXoq/VVeFp7vhMd842Z/JJy911qY2E3Hzhf7ua2hXEDbvlSMw3fqgX2jVVXouAaZMFqAUVZCFwMqzRQKrmEw2tigHfyDHzZoYl51bsnAz6Yioi8Kai1Io5YDePZ1FUmQgz5GqlGGcFmGf0t4ls31f5Jjxa08tiSGk1snmX4T+iDhl09t/9lMuu1PQ6gfNO87QUn397RREd3qRVaL301Rh0+tRYcpbBiqCnBvin11tW1wRKFgyVb4HjfOUQdsHnvkjDOv98bYBk936O32lGhnpE291D9ryA7sVAg39b3XRemFWgcHbbkkhOV4Bt4GaMFCOZdGprwCG+MExoYnkn1bHxNyIAS1JSBWW+2Le0SwAiEb49FjNlEIY7/R0U6gJOQksiW3XHNHlvjQI2nE/lOs+1vnMpMYnsCNpQ/K/u5GlYzJasuBGka3GOUBkk0feyVO4RddCbqALEuMNPjQJuQrOy9RcAlwK3P5OlDX+wWpBXA5pRFp3NxV1PnsmV9c7Msuxuxvly0zPAfzJJCjWIwgYwGCSqGSIb3DQEHATAdBglghkgBZQMEASoEEKOaC1XqMZcsCb92Hq8KpfmAYIGcspZnLr+EfVoH2DmGUbgZyaAsVcIIniyep0GHqVKpbHf9+z902Z93aaMiEebpgvjPys0h9GDeyhD0w7FXZhzL221B9p9vlMJrxI3a9ZVfnCeW27Cfy+UuxG1q/yq1OQ==]

View file

@ -0,0 +1,8 @@
[[inputs.tail]]
files = ["/var/log/eidas_stats.log"]
data_format = "json"
tag_keys = ["requester","country"]
json_name_key = "type"
json_time_key = "timestamp"
json_time_format = "unix_ms"
json_timezone = "Local"