mingrammer / flog

:tophat: A fake log generator for common log formats
MIT License
1.11k stars 135 forks source link

Support for RFC5424 #20

Closed vermi closed 5 years ago

vermi commented 5 years ago

RFC3164 was superseded by RFC5424, which is a slightly modified format as follow:

<priority>VERSION ISOTIMESTAMP HOSTNAME APPLICATION PID MESSAGEID STRUCTURED-DATA MSG

For example: <34>1 2003-10-11T22:14:15.003Z mymachine.example.com su - ID47 - BOM'su root' failed for lonvick on /dev/pts/8

Could you please add support for generating logs in this format?

mingrammer commented 5 years ago

Yes, I'll add it.

mingrammer commented 5 years ago

@TheRealPOTUS Could you please review this? Thank you.

https://github.com/mingrammer/flog/commit/d09e931c4a2c7ebb27d197844744983f86d37076

vermi commented 5 years ago

@mingrammer Looks correct to me!

Thanks for turning this around so quickly!

mingrammer commented 5 years ago

flog v0.2.5 was released. You can use RFC5424 with v0.2.5. Thank you.

I close this issue.