Hello All,
I need %{GREEDYDATA:Text1} till first comma
Here is the input file data
02/06/2016 01:01:07,Text1Data,Text2Datap1,Text2Datap2,Text2Datap3,1046,547,error
Grok Expression
%{DATESTAMP:Time},%{GREEDYDATA:Text1},%{GREEDYDATA:Text2},%{INT:value1},%{INT:value2},%{GREEDYDATA:Status}
Current Output
{
"Time": [
"02/06/2016 01:01:07"
],
"Text1": [
"Text1Data,Text2Datap1,Text2Datap2"
],
"Text2": [
"Text2Datap3"
],
"value1": [
"1046"
],
"value2": [
"547"
],
"Status": [
"error"
]
}
Expected Output
{
"Time": [
"02/06/2016 01:01:07"
],
"Text1": [
"Text1Data"
],
"Text2": [
"Text2Datap1,Text2Datap2,Text2Datap3"
],
"value1": [
"1046"
],
"value2": [
"547"
],
"Status": [
"error"
]
}
Thanks for your help in Advance