kafka appender for logback-access events #24
Comments
Hey @dianedownie, thanks for this question. A custom implementation of I wasn't even aware of After these changes, you could use the following configuration for logback-access:
I'll set up a branch with some initial experiments and have a look at the weekend. |
…ternative events like logback-access (#24).
…ternative events like logback-access (#24).
Thanks much for your quick response and creating this branch. I will start working my extensions there. |
I hope you won't need any extensions once this issue is solved :) |
Fabulous! You did all the hard work. :-)
I have that one error to track down although I have not seen any ill effects in the logging. |
Can you show your current configuration? the log looks like as if you put a charset-element into the layout-element while it should be one level up in the encoder-element. |
I was seeing warning about that...so I tried specifying the charset in multiple places...
But this config doesn't generate the error, so thanks for that tip.
|
Cool, thanks for testing! We'll release this with the upcoming 0.1.0 |
I'm looking forward to the release of 0.1.0. Do you have an estimated timeframe for that? |
I thought about having a look at #16 (which probably will introduce another breaking change) next weekend, and then roll up the 0.1.0. |
Ok, thanks for letting me know. |
Thanks much for the quick turnaround, @danielwegener . I pulled 0.1.0 and it's working great with my configuration. |
I am currently using logback-access with tomcat to write access log events to a daily log file.
I would like to send them directly to kafka and this project seems like a good solution for that problem. Unfortunately, the logback-kafka-appender doesn't support IAccessEvent layout patterns, only ILogEvent layout patterns. It seems like I could get this to work by creating an encoding class derived from KafkaMessageEncoderBase. I'm about to give that a try, but do you know of a better approach or do you already know this is not going to work for some reason?
Thanks for any suggestions,
Diane
The text was updated successfully, but these errors were encountered: