Logging only to the index

I have a very slow disk for storing logs in my cluster.
Therefore, I do not write logs in files, but I want to store logs in the index specified in audit_index_template.
But “verbosity: error” disables writing to both places.
Tell me how can I disable writing logs to a file, but at the same time write to the index?

Hi,

Did you see this?
If you don’t want to have ROR logs in the file, maybe you should use log4j configuration (see Trick: log requests to different files) to achieve it?

Thanks, solved the problem with log4j2.

2 Likes