how would one go about collecting logs from an encrypted log file that has to be first decrypted
I have some /var/log/my_encrypted_log.log
to read this I have to pipe the contents to an binary that decrypts them
$ cat /var/log/my_encrypted_log.log | my_decryption_binary | less
this will show the logs in clear text format
I don't want to save all my decrypted logs in a different file since it will grow quite big and I am disk space limited.
I was thinking of sending/tailing it to an TCP/UDP/http stream but would like to do that directly via Agent, if possible. Is there a way to run arbitrary(but pre-defined) binaries?