emrenak
emrenak

Reputation: 51

Syslog-ng custom parser

Is it possible to implement custom parsers in syslog-ng ? For example, I want to implement a custom parser which will parse messages in ASN format and write the contents of the message to a file in ASCII format. Would it be possible ?

Upvotes: 1

Views: 971

Answers (1)

Robert Fekete
Robert Fekete

Reputation: 557

yes, you can write custom parsers in Python. The Python parser is available in the latest version of the Premium Edition (commercial product), and it will be available in the upcoming 3.10 version of the Open Source Edition. You can read about it in the documentation of the Premium Edition at https://www.balabit.com/documents/syslog-ng-pe-latest-guides/en/syslog-ng-pe-guide-admin/html/python-parser.html

If you compile the current master branch of the Open Source Edition, it should include the Python parser. I think there is also a nightly rpm package somewhere that includes it - I'll check it and get back to you tomorrow.

Upvotes: 1

Related Questions