Following the Elastic documentation for Handling pipeline failures I have added a failure processor which is supposed to change the _index, but it does not seem to work as I thought.
Our Elastic Agent uses the Custom Logs (Filestream) integration where we have configured it to use our self-made Ingest Pipeline we have configured/created in Kibana.
Yeah, this is a permission issue, Elastic Agent policies have pretty limited permissions, they can only write to the data streams for their integration, so using set or reroute processors to change the name of the index will not work because the API Key used by the policy will not have the permissions required.
In your example is more complicated because Elastic Agent managed by fleet cannot write into anything that does not follows the Elastic data stream naming scheme, so for logs you can only write into datastreams starting with logs-*, trying to write into failed_* will not be possible.
What is the version of your stack? If you are at least on 9.1 you can now add extra permissions to extra datastreams in the policy, but you would need to use logs-* something for this.
Also, on 9.1+ you have the option to automatically capture failed events with the Failure Store.
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.