alexferl / tinysyslog Goto Github PK
View Code? Open in Web Editor NEWA tiny and simple syslog server with log rotation in Go. Works with Docker and Kubernetes.
Home Page: https://hub.docker.com/r/admiralobvious/tinysyslog/
License: MIT License
A tiny and simple syslog server with log rotation in Go. Works with Docker and Kubernetes.
Home Page: https://hub.docker.com/r/admiralobvious/tinysyslog/
License: MIT License
The grok pattern seems to load:
# docker run --rm --name tinysyslog -p 2514:5140/udp admiralobvious/tinysyslog --log-level debug --filter-grok-pattern test --filter grok
time="2020-01-31T00:34:39Z" level=info msg="tinysyslog starting"
time="2020-01-31T00:34:39Z" level=debug msg="Using mutator type 'text'"
time="2020-01-31T00:34:39Z" level=debug msg="Using filter type 'grok' with pattern 'test'"
time="2020-01-31T00:34:39Z" level=debug msg="Adding sink type 'console'"
time="2020-01-31T00:34:39Z" level=info msg="tinysyslog listening on 0.0.0.0:5140"
But it doesn't look like the regex filter does:
# docker run --rm --name tinysyslog -p 2514:5140/udp admiralobvious/tinysyslog --log-level debug --filter-regex test --filter regex
time="2020-01-31T00:36:52Z" level=info msg="tinysyslog starting"
time="2020-01-31T00:36:52Z" level=debug msg="Using mutator type 'text'"
time="2020-01-31T00:36:52Z" level=debug msg="Using filter type 'regex' with filter ''"
time="2020-01-31T00:36:52Z" level=debug msg="Adding sink type 'console'"
time="2020-01-31T00:36:52Z" level=info msg="tinysyslog listening on 0.0.0.0:5140"
I'm not super sure, but it looks like maybe this line needs changed from filter-regex-filter
to filter-regex
?
As I can set parameters of filesystem module in Configurations
But I didn't find the path that I can point to with docker volume
Or is there a way to pull the log files out?
Hi,
Syslogs from Mikrotik routers show like this:
tinysyslog | time="2024-01-21T20:37:53Z" level=info msg="tinysyslog listening on 0.0.0.0:5140"
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
tinysyslog | Jan 1 00:00:00 []:
A tcpdump of the UDP packet shows that it does contain the log message.
This folder cmd/tinysyslogd
doesn't exist.
https://github.com/alexferl/tinysyslog/blob/master/Makefile#L15
Your .gitignore seems to have prevented you from committing it.
https://github.com/alexferl/tinysyslog/blob/master/.gitignore#L28
I can't seem to figure out how to get Grok filters to work. I think it would be helpful to have Grok filter examples somewhere.
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.