Index is not got created into elastic search

This is the config file i m using to run logstatsh and version is 6.7.1
but when i try to search into kabana its not showing any indices with "mchoutput" name.

Please help me ..Thanks in advance..

input {
file {
path => "C:\ESSENSE5315\FFC\mch-\config\CommonParty\logs\mch-output.log"
type => "mch-output"
start_position => beginning

filter {
if [path] =~ "mch-output" {
mutate { replace => { "type" => "mch-output" } }
grok {
match => [ "message", "%{LOGLEVEL:logLevel} %{TIMESTAMP_ISO8601:timestamp} [%{GREEDYDATA:txt}] %{DATA:class} * %{GREEDYDATA:message}" ]

date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]

output {
stdout { codec => rubydebug }
elasticsearch {
hosts => ["localhost:9200"]
index => "mchoutput"

Question moved to #logstash

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:


This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.

Use forward slash for Windows paths in the file input.

Thanks for reply, i have change the '' ith '/' now its working. please close the issue.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.