Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

convert syslog to other format with nifi?

Explorer

Hi

I want to convert my syslog format file to other format like csv, cef or json with NiFi.

How can I do this?

thanks you.

2 REPLIES 2

Explorer

@Matt Clarke

would you help me?

Master Guru

@mojgan ghasemi

-

My suggestion is you look at using the "ConvertRecord" processor for this purpose.

As your "Record Reader" you should be able to use the GrokReader to parse your syslog format.

As your "Record Writer" you have both CSV and JSON record writers.

I am not familiar with the "cef" file format and don't know of any processors or record writers that can convert to to that format. That one may requires some custom coding on your part.

-

Thank you,

Matt

-

If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.