woblerr / authlog_exporter Goto Github PK
View Code? Open in Web Editor NEWPrometheus exporter for collecting events from auth.log file with geoIP support.
License: MIT License
Prometheus exporter for collecting events from auth.log file with geoIP support.
License: MIT License
I encountered a strange behavior this night. At midnight UTC, which is also 2 am local time (at 3 am local time switched back to 2 am due to daylight saving, can not say which of the bove 2 am's it was) all the authlog metrics doubled their counters. At the same time the auth.log
file rotated and was emptied.
I double checked theauth.log
file and there are no authentications around that time.
Container logs:
2022/10/30 00:00:18 Re-opening moved/deleted file /var/log/auth.log ...
2022/10/30 00:00:18 Successfully reopened /var/log/auth.log
Hello,
We noticed that v0.4.0 is no more available on the releases section. Do you plan to build another release for this version?
Many thanks!
Installation method: docker (ghcr.io image)
Version: latest (it actually is already a few days old once I pulled it)
The geo data resolving is working.
Unfortunately getting geo data for IPs fails for the url
method using freegeoip.live
fails with this error in the logs:
level=error ts=2022-10-24T13:00:58.462Z caller=geo.go:89 msg="Error getting GeoIp URL" err="Get \"https://freegeoip.live/json/xxxxxxxxx\": x509: certificate signed by unknown authority"
This probably happens due to the missing ca-certificates
package in the image. Adding this to the Dockerfile
should add them:
RUN apk add --no-cache ca-certificates && update-ca-certificates
If you want me to open a MR with the fix I will do so once I am having time for it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.