I have found my issue. It appears i was looking at the wrong URL.
The URL that i was looking at was URL : localhost:9200/logstash-2016.10.10?=pretty=true
which returns the setting of the index.
I then used this URL : http://localhost:9200/logstash-2016.10.10/_search?=pretty=true
My log file :
1234 hello
1234 hello
1234 hello
1234 hello
1234 hello
When i do a search query URL : http://localhost:9200/logstash-2016.10.10/_search?=pretty=true
Output :
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 387,
"max_score" : 1.0,
"hits" : [ {
"_index" : "logstash-2016.10.10",
"_type" : "logs",
"_id" : "AVey5QtVcMR1QqUFiopI",
"_score" : 1.0,
"_source" : {
**"message" : "1234 hello\r",**
"@version" : "1",
"@timestamp" : "2016-10-10T08:38:57.043Z",
"path" : "C:\\Elk\\logstash\\bin\\MylogFile.log",
"host" : "admin1"
}
}, {
"_index" : "logstash-2016.10.10",
"_type" : "logs",
"_id" : "AVey5QtVcMR1QqUFiopM",
"_score" : 1.0,
"_source" : {
**"message" : "1234 hello\r",**
"@version" : "1",
"@timestamp" : "2016-10-10T08:38:57.046Z",
"path" : "C:\\utils\\Elk\\logstash\\bin\\MylogFile.log",
"host" : "admin1"
I now can see 1234 hello
pass in the above query.
I have a few questions as to what i want to achieve with my Elk stack, please guide.
-
Logstash is creating its own index file when I run logstash.conf, how do i change the name of this index to my own name ?
-
Is grok built into logstash or do i need to install it as a plugin?
-
Does Kibana require filtered data to generated a visual representation of data?
Thank you for your response Magnus , i really appreciate it as i am very new to the Elk Stack.