I m trying to use beats to send Jmeter data to log stash, I can get the data in Ok , But not in the format I want. Logstash puts it all into one field.
My Logstash.config file looks like
Read input from filebeat by listening to port 5044 on which filebeat will send the data
input {
beats {
type => "Jmeter_test"
port => "5044"
}
}
filter {
grok {
patterns_dir => ["D:\logstash-7.4.0\Patterns"]
match => {"message" => "^%{MYDATEPATTERN:RunTime}%{NUMBER:Elapsed}%{WORD:Label}%{NUMBER:responsecode}%{WORD:responseMessage}%{WORD:Success}%{NUMBER:Bytes}%{NUMBER:grpThreads}%{NUMBER:allThreads}%{PATH:URL}%{NUMBER:Latency}%{NUMBER:SampleCount}%{NUMBER:ErrorCount}%{WORD:Hostname}%{NUMBER:IdleTime}%{NUMBER:Connect}"
}
}
}
output {
stdout {
codec => rubydebug
}
Sending properly parsed log events to elasticsearch
elasticsearch {
hosts => ["localhost:9200"]
}
}
My input data file looks like
2019/10/24 08:30:37,244,PHI Private ,200,OK,xyzcom_bp08 General Browsing 2 20-28,true,38166,1,2,https://xyz.com.au/,239,1,0,ServerName,0,32
2019/10/24 08:30:37,68,GetQuote_ Pge Load,200,OK,xyzcom_bp08 General Browsing 2 20-28,true,4707,1,2,https://xyz.com.au/,68,1,0,ServerName,0,21
2019/10/24 08:30:45,197,HHP xyz.COM Home Page,200,OK,xyzcom_bp06 xyz.COM HP 18-25,true,52971,1,3,https://xyz.com.au/,191,1,0,ServerName,0,18
I need to be able to reference all the data to build graphs and dashboards
When the logstash is running i get this error
}
{
"input" => {
"type" => "log"
},
"ecs" => {
"version" => "1.1.0"
},
"@version" => "1",
"host" => {
"name" => "ServerName"
},
"@timestamp" => 2019-10-29T04:20:44.427Z,
"message" => "2019/10/29 08:41:57,103,MEMB Members,200,OK,xyzcom_bp10 General Browsing 4 22-7,true,50300,4,94,htt
ps://xyz.com.au/members,92,1,0,ServerName,0,15",
"tags" => [
[0] "beats_input_codec_plain_applied",
[1] "_grokparsefailure"
],
"type" => "Jmeter_test",
"agent" => {
"hostname" => "ServerName",
"id" => "eb1a89a1-51dd-4342-a791-392e12f4fa4a",
"version" => "7.4.1",
"type" => "filebeat",
"ephemeral_id" => "8fc7d8d1-e3e9-48d4-9ce5-f549fccce490"
},
"log" => {
"offset" => 884395,
"file" => {
"path" => "D:\JmeterKibana7\Web_RLSE_20191029_0830_Baseline_240U.csv"
}
}
}
{