mtail icon indicating copy to clipboard operation
mtail copied to clipboard

Can I write unparsed log lines to another log?

Open kirimedia opened this issue 2 years ago • 1 comments

Is there action to write unparsed records to a file? For example

...
otherwise {
   stat["other"]++
   write /var/log/unparsed.log //???
}

kirimedia avatar Apr 18 '23 12:04 kirimedia

There isn't.

A feature of mtail 2.0 (the internal Google one) that I didn't migrate to the open source version, because no-one internally used it, was to emit the log lines to the status page and the INFO log.

I think we could support this, but I'm not super keen to have mtail also manage log writing just yet.

On Tue, 18 Apr 2023 at 22:52, Mikhail Kirichenko @.***> wrote:

Is there action to write unparsed records to a file? For example

... otherwise { stat["other"]++ write /var/log/unparsed.log //??? }

— Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/724, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXFX66EA3VL6UCG5FEWK23XB2FBHANCNFSM6AAAAAAXCS5DZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jaqx0r avatar Apr 26 '23 21:04 jaqx0r