So if you can do a curl and print the result in a file, try this :
Do a curl and print the result in a file
Configure your logstash to read the file
input => use the multiline codec plugin to read the entire file in one time example here.
filter => use the json plugin to get all your data.
output => do what you want.
You can even configure logstash before the curl command and configure it to make it read the file when it is edited.
:response=>{"index"=>{"_index"=>"zzzzzzzz-2021-08-13", "_type"=>"_doc", "_id"=>"3rNpP3sBaVcWztqJKPzH", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"mapper [Event.Object.Attribute.value] cannot be changed from type [date] to [text]"}}}}
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.