Hi,
I am trying to implement Elasticsearch for my spring boot application.
But some how In Kibana, when i try to configure index, I am not able find any elasticsearch data
I made sure that, my elasticsearch, Kibana and Logstash is up and running
when i tried to print indices
http://localhost:9200/_cat/indices?v
below is the result. Here somehow I am not getting logstash index
Logs in the logstash are as shown in the below screen shot
My logstash.conf file contents are as follows
Sample Logstash configuration for creating a simple
Beats -> Logstash -> Elasticsearch pipeline.
input {
file {
type => "java"
path => "C:\Kotresh\work\Q-MATE\elastic-demo-logs\qmate-elastic-tool.log"
codec => multiline {
pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*"
negate => "true"
what => "previous"
}
}
}
filter {
#If log line contains tab character followed by 'at' then we will tag that entry as stacktrace
if [message] =~ "\tat" {
grok {
match => ["message", "^(\tat)"]
add_tag => ["stacktrace"]
}
}
#Grokking Spring Boot's default log format
grok {
match => [ "message",
"(?%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}) %{LOGLEVEL:level} %{NUMBER:pid} --- [(?[A-Za-z0-9-]+)] [A-Za-z0-9.].(?[A-Za-z0-9#_]+)\s:\s+(?.)",
"message",
"(?%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}) %{LOGLEVEL:level} %{NUMBER:pid} --- .+? :\s+(?.)"
]
}
#Parsing out timestamps which are in timestamp field thanks to previous grok section
date {
match => [ "timestamp" , "yyyy-MM-dd HH:mm:ss.SSS" ]
}
}
output {
stdout {
codec => rubydebug
}
Sending properly parsed log events to elasticsearch
elasticsearch {
hosts => ["127.0.0.1:9200"]
}
}
I have placed above logstash.conf file under logstash installation bin directory ( logstash-6.4.1\bin )
Please suggest, where I am doing mistake.
If i push test data using devtools options, then I am able to find this particular index .