Hello,
I wish to configure my Logstash pipline so it will index JSON files from a local directory.
Of course, I already went through relevant topics and found no satisfying solution for my case, for instance, this issue here:
is very similar to mine.
My pipline config file looks as follows:
input
{
file
{
codec => multiline
{
pattern => '^{'
negate => true
what => previous
}
path => ["c:/work/UXMresults/.json"]
start_position => "beginning"
sincedb_path => "/dev/null"
exclude => ".gz"
}
}filter
{}
output {
elasticsearch {
hosts => [ "localhost:9200" ]
index => "yeti"
}}
where a typical json file I want to index looks like this:
{
"testParams":
{
"testingDevice":"UXM",
"visaAddress": "TCPIP0::172.25.150.216::5125::SOCKET",
"testCase":"",
"testDescription":"",
"stopCondition":
{
"numOfSubFrames":""
},
"rfBoxConfiguration":"Yeti_2x8"}, "preScriptUxmParams": { "antConfig":"D2U1", "schedulerMode":"", "bw":"BW20", "duplex":"tdd", "band":"41", "periodicCsi":"", "aperiodicCsi":"", "mcs":"15", "tm":"", "tddConfig":"", "ssfConfig":"", "numOfCw":"", "awgn":"", "channel":"", "allocationType":"", "cfi":"", "numOfLayers":"", "rsPower":"" }, "runScriptUxmParams": { "macPadding":"" }, "results": { "dl": { "throughput": { "max":"164", "avarage":"50" }, "BLER":"3.2" }, "ul": { "throughput": { "max":"10", "avarage":"10" }, "BLER":"0" } }
}
Logstash seems to accept this pipline config when I run it
nevertheless,
I cant find any trace to the index I gave in the config file("yeti") on Kibana>>Discover
Help will be mush appreciated
Yaniv