Hello Everyone, this is my first post here so I'll try to provide good specifics.
First off, I'm trying to make an ELK stack with Filebeat all hosted on the same VM. It's just a lab environment.
Kibana, Elastic, Logstash, and Filebeat are all communicating with each other on their respective ports. I am getting this error from Logstash:
Dec 11 12:33:42 logger logstash[10390]: [2020-12-11T12:33:42,162][WARN ][logstash.outputs.elasticsearch][main][9d4a249cf7f2baff646eaf522341179928239f5e000572e7e971e0f260a83ac0] Could not index event to Elasticsearch. {:status=>404, :action=>["index", {:_id=>nil, :_index=>"filebeat-7.10.1-2020.12.11", :routing=>nil, :_type=>"_doc"}, #<LogStash::Event:0x4295f476>], :response=>{"index"=>{"_index"=>"filebeat-7.10.1-2020.12.11", "_type"=>"_doc", "_id"=>nil, "status"=>404, "error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index [filebeat-7.10.1-2020.12.11] and [action.auto_create_index] ([.monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*]) doesn't match", "index_uuid"=>"_na_", "index"=>"filebeat-7.10.1-2020.12.11"}}}}
So far I've tried handling it by making a processor configuration in Filebeat.yml
This is the top portion of my filbert.yml
*Note, I have since commented out the config at the bottom about the .ilm. policy. I had used that to set up filebeat initially when it's output was elastic search.
This is the output from Elasticsearch concerning my indexes it has stored locally.
This is my Logstash pipline.conf:
input {
beats {
port => 5044
}
}
output {
if [@metadata][pipeline] {
elasticsearch {
hosts => "http://172.20.1.123:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
pipeline => "%{[@metadata][pipeline]}"
#user => "elastic"
#password => "secret"
}
} else {
elasticsearch {
hosts => "http://172.20.1.123:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
}
#output {
# elasticsearch {
# hosts => ["http://172.20.1.123:9200"]
"/etc/logstash/conf.d/logstash-filebeat.conf" [readonly] 35L, 859C
My main question is:
Is there a filter configuration or a processor I can put in to get my output from filebeat, through Logstash to actually match the index on Elastic?
Any help would be appreciated. I apologize in advance as I am very new to ELK.