Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature-Request: Create possibility to create Statistics from Logfiles or Journal #7

Open
zeus86 opened this issue Mar 24, 2021 · 2 comments

Comments

@zeus86
Copy link

zeus86 commented Mar 24, 2021

Not really a core-feature here, but I think it would be nice to have a proper way to directly create statistics from logentries, like how many clients per timeframe or connected time per client / average and so on. At the end of the day it's these numbers which represent the fun in hosting a service like this :-)

Maybe this is somewhat out of scope, but maybe easier would be an additional log-entry at info-level after a client has disconnected including a consecutive ID like so:

# date     time     loglv    service              id     ip         port   state/notice
2021-03-24 16:26:23 INFO     TarpitServer: Client (4567, '1.2.3.4', 60216) connected
2021-03-24 16:36:31 INFO     TarpitServer: Client (4567, '1.2.3.4', 60216) disconnected
2021-03-24 16:36:31 INFO     TarpitServer: Client (4567, '1.2.3.4', 60216) duration: 608s (...or human readable)

cheers,
zeus

@Snawoot
Copy link
Owner

Snawoot commented Mar 24, 2021

Take a look at PR #3

I guess it implemented roughly what you are talking about. But, of course, there is always much to improve.

@zeus86
Copy link
Author

zeus86 commented Mar 24, 2021

Uhm, yes, did not look at this. You're right. The primary goal would be to be able to parse logs and generate statistics from it, the precise way would not matter that much (anyways, I think a summarized time as well as an assigned ID/reference/hash in the log-message would make this alot easier xD ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants