bpaquet / node-logstash

Simple logstash implmentation in nodejs : file log collection, sent with zeromq
Other
517 stars 141 forks source link

Creating a JSON from CSV - Filter plugin #128

Closed saranya279 closed 8 years ago

saranya279 commented 8 years ago

Need to create a JSON object from a csv. Can you please let me know how to go about this.

For instance I have a row "äbc,26,07/24/86" needs to be parsed into

{ "name":"abc", "age":26, "dob":"07/24/86" }

This data will be indexed into elasticsearch

bpaquet commented 8 years ago

Use the regex or grok plugin.