I have created more than 150 index patterns based on the indexes I have. Yesterday I changed the names of indexes for better visibility. Now I need to delete all old index-patterns using a curl query. I can run through a loop, feeding index-patterns from a file and running curl for deleting them one by one.
But I am not able to delete any index pattern using curl. I followed this
But throws an error-
[EDIT]: The index-pattern exists in kibana and I could delete it manually from browser.
I have lots of json and csv files to parse (hundreds in number). For keeping a track of failures, I want to print the events of only parsefailures to stdout.
Tried
output {
elasticearch { hosts => "localhost" index => "index1" }
if "parsefailure" in [tags] { stdout { } }
}
but it didn't work. I need to see both events of dateparsefailure and csvfarsefailure on stdout. There are no suggestions on internet about this. Also, plz note that I have atleast 3 tags with every log.
Even that threw the same error.
Anyways, I found the GUI method to delete index-patterns through saved objects option. So problem solved. I can delete around 200 patterns in one go now.
Thanks...
anyways, I found alternate method. The objective was to delete index patterns. I know that it is deviating from the original question about curl method, but not bad if it gets the job done. I was able to delete index patterns in bulk from saved objects from kibana. Just for the help if someone comes across this.
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.