Can't add txt files to elastic search


(Osymandias Ii) #1

hi
I want to index txt in elastic search with Logstash.
the problem is that logstash do not recognise the index i'm using.
I m quite new to ELK so maybe the solution is simple.

this is my config file :

input {
file {
path => ["/Users/timothemalandain/Downloads/logstash-5.6.2/UserData/MainTitles.txt"]
start_position => "beginning"
}

}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "titles"
document_type => "titles"
}
stdout {}
}

When i want to add the index in Kibana i have "Unable to fetch mapping. Do you have indices matching the pattern?"

What am i not doing/doing wrong ?
thanks


(Mark Walkom) #2

What are you putting in the index pattern field?


(Osymandias Ii) #3

thanks for your reply

Well in my config file i've chosen "titles" as the index
So i put "titles" in the index in Kibana .
Do i need to create "titles" like that in console : Put /titles
before, because i tried it an didn't work.


(Mark Walkom) #4

When you run Logstash does it show anything in stdout?


(system) #5

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