The best way to parse CDRs

Hi,

I have a CDR file that I would like to parse. The file looks like this:


Thu Jun 1 06:00:00 2017
NAS-Identifier = 'TOR'
Acct-Status-Type = Stop
NAS-IP-Address = 10.2.1.16
NAS-Port = 5060

Thu Jun 1 06:10:00 2017
NAS-Identifier = 'MTRL'
Acct-Status-Type = Stop
NAS-IP-Address = 10.9.1.14
NAS-Port = 5060

What is the best way to parse it using logstash. My first Idea is to 'awk' the file and format it in Json format and then parse it on logstash. If there is a better way please let me know.

Thanks,

I used kv. I will close this one.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.