LogFile
[0808 16:08:51 EAT] INFO 47260019218176 profile | Start Statistics Info
[vitual server] = 10.6.2.38:8080
recv called count = 1620
input {
file {
path => "/home/babukuse/data/profile.log.15"
start_position => "beginning"
}
}
filter {
grok {
match => { "message" => "[%{SYSLOGTIMESTAMP:syslog_timestamp}][%{WORD:virtualserver}] %{IP:virtualserverIP} %{WORD:recv called count}%{NUMBER:request}" }
}
}
output {
elasticsearch { hosts => ["10.184.8.113:9200"]
index =>["machine4"]}
stdout { }
}
Output.
{
"host" => "svdt5cbs55ml.safaricom.net",
"@version" => "1",
"path" => "/home/babukuse/data/profile.log.15",
"@timestamp" => 2018-08-16T23:37:06.726Z,
"tags" => [
[0] "_grokparsefailure"
],
"message" => "[vitual server] = 10.6.2.38:8080"
}
{
"host" => "svdt5cbs55ml.safaricom.net",
"@version" => "1",
"path" => "/home/babukuse/data/profile.log.15",
"@timestamp" => 2018-08-16T23:37:06.704Z,
"tags" => [
[0] "_grokparsefailure"
],
"message" => "[0808 16:08:51 EAT] INFO 47260019218176 profile | Start Statistics Info"
}
{
"host" => "svdt5cbs55ml.safaricom.net",
"@version" => "1",
"path" => "/home/babukuse/data/profile.log.15",
"@timestamp" => 2018-08-16T23:37:06.727Z,
"tags" => [
[0] "_grokparsefailure"
],
"message" => "recv called count = 1620 "
}