weblogic-logging-exporter icon indicating copy to clipboard operation
weblogic-logging-exporter copied to clipboard

Featrure to write to a file system

Open RalfNeugebauerATrobotronDE opened this issue 4 years ago • 4 comments

Hello,

We would like to use the feature "Write logs in JSON format into the file system so that they could be collected and published by a sidecar, e.g. fluentd or Logstash.", but I can't see an example for the configuration in "WebLogicLoggingExporter.yaml".

Can you help me with that, please?

Kind regards Ralf

Unfortunately, this isn't yet implemented. I'll get someone to cleanup the text. A little lower it does say that these features are planned for the "next few releases", but this is obviously confusing.

rjeberhard avatar Jun 22 '21 17:06 rjeberhard

Hello,

Is there any plan to implement it in the near future?

Kind regards Ralf

Hi, we are happy to take requests - though you can already achieve this with fluentd itself. Please see docs/samples at https://oracle.github.io/weblogic-kubernetes-operator/samples/simple/elastic-stack/weblogic-domain/ that show how to read and parse the logs with a fluentd sidecar. If that does not work for you, please update this issue again and we'll take a look. Thanks

markxnelson avatar Jun 23 '21 12:06 markxnelson

@RalfNeugebauerATrobotronDE I have created a pull request #20 for writing logs to a JSON file. It is a bit opiniated as I wanted it to work for our company but maybe you find it useful.

@markxnelson Can someone of your team review the pull request. I forgot to sign it so I'll do that as well. If it's too opiniated (I use a different json format then the elasticsearch exporter does) then thats understable as well.

NickWemekamp avatar Aug 24 '21 10:08 NickWemekamp