my index lifecycle policies is giving below error,
Index lifecycle error
illegal_argument_exception: index.lifecycle.rollover_alias [logstash] does not point to index [logstash]
i tried to edit the index and add in "index.lifecycle.rollover_alias": "logstash", after i save.. the index alias still remain to "none"
anyway to assign the alias in index and take effect?
by the way, this is my logstash config file,
I not sure why the index file is not logstash-00000x anymore after i upgrade from 6.7 to 7.1,
if i want to change the index name from logstash to logstash-0000x, what should i do?
input {
tcp {
port => 5514
type => syslog
}
udp {
port => 5514
type => syslog
}
}
filter {
if [type] == "syslog" {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
}
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
}
}
output {
elasticsearch { hosts => ["10.3.3.30:9200"] }
stdout { codec => rubydebug }
}
The logstash index is name logstash.
before i upgrade from 6.7 to 7.1, it was logstash-00000x
Not sure why after upgrade from 6.x to 7.x, it create a lot of issues. and index file become logstash instead of logstash-xxxxxx
and also all the logstash-xxxxx index from 6.7 require to reindexing.
anyway, i can fix this?
But have a look at kibana -> management -> upgrade assistant
there should be listed what is wrong with your indices and maybe a button to reindex it again.
do you know what is this warning? Deprecation: [types removal] The parameter include_type_name should be explicitly specified in get template requests to prepare for 7.0. In 7.0 include_type_name will default to 'false', which means responses will omit the type name in mapping definitions.
I'm giving up to troubleshoot.
It seem like upgrade from version 6.x to 7.x got a lot of issues.
My syslog is coming in to message.log, but i cannot output to elasticsearch...
there is no indices after receiving syslog to message.log..
If this one will be created, then you have a problem in your now existing index.
This could be managed by deleteing the existing indices and begin from scratch.
But as I said a few post ago. this is not a logstash problem. it is an elasticsearch problem.
not sure what's wrong..
i clear all existing index.. and try your output..
also nothing being index...
but i can see my syslog coming in to the server /var/log/message.
just cannot output to indices..
trying to troubleshoot this since early of May, still cannot resolve.
i tried to deploy fresh ELK 7.1, everything is working fine..
just the upgrade from ELK 6.x to ELK 7.x giving me such problem...
anyway, really appreciate for your help. Thank you.
if logstash is running, there should not be this port open.
if you have running a syslog server then you need another port in logstash.
It is not possible to have two services listening on the same port in logstash.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.