You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Divya Gehlot <di...@gmail.com> on 2015/07/03 10:27:47 UTC

parse the log file key value pairs using Pig

I have log files(format show below) which needs to parsed and stored in
JSON format

(Stringname1,NIL,2015-07-01,22:58:53.66,E,stringname2,12,0xd6,BIZ,LevelMessage
,0,0.0,key=Value&key=Value&key=Value&key=Value&key=Value&key=Value&key=Value&key=Value&key=Value&key=Value&key=Value)


I need to parse key value pair field and get the values like Key:Values in
Json format .
pointers please