Hi All ,
I am new to ELK and trying to forward a non-real time log by applying grok in config file to pick the log time .I referred few previous discussions to find that Grok could be used to parse the data & Date{} could be used to overwrite with log time.
PFB the details of log & config file.
Please help me where I am missing .
Input Data-
A824209B7C244E64A1370281C2FF 3E975EA9197F4A91BF3869F14D67 ReadyForProcessing 12:30:14 AM
Config File:
input {
file {
path => "Location\Sample.csv"
start_position => "beginning"
}
}
output {
elasticsearch {
action => "index"
index => "newindex"
}
}
filter {
csv {
columns => ["ConversationID", "Conversation_StateID", "Conversation_Status_Desc", "ConversationStateComments","CreationTime"]
separator => ","
}
grok {
match => { "message" => "%{TIME:timestamp:date}" }
}
date {
match => [ "timestamp", "HH:mm:ss" ]
}
}
Please help .
Thanks ,
Prateek