logging-operator icon indicating copy to clipboard operation
logging-operator copied to clipboard

Google Stackdriver output

Open seanson opened this issue 5 years ago • 14 comments

Is your feature request related to a problem? Please describe. We use stackdriver as an output for fluentd for a manual deploy currently but would like to move to logging-operator.

Describe the solution you'd like I'd like to use the fluent-plugin-google-cloud in the same manner as the other backend based plugins like ElasticSearch.

Describe alternatives you've considered I have considered a GCS logging bucket and a function to ship the logs from there into the StackDriver API but it is a less than ideal option.

Additional context This was previously raised in #40 but considered not required unless someone was willing to raise it as a separate request later.

seanson avatar Oct 28 '19 23:10 seanson

Ay,

Is StackDriver output available ? We want to move from our old logging workflow to Banzai Cloud Logging Operator but StackDriver is mandatory for us.

KrustyHack avatar Apr 02 '20 08:04 KrustyHack

This becomes a requirement for us too. Can we think of rescheduling this task?

aslafy-z avatar Jun 08 '22 09:06 aslafy-z

@aslafy-z okay, I'll check it.

ahma avatar Jun 08 '22 11:06 ahma

Any updates? Would love if this became available

ekhaydarov avatar Dec 02 '22 17:12 ekhaydarov

@tarokkk would you be able to provide an update at all please? Just so we can assess to wait or use a different tool. Thanks

ekhaydarov avatar Jan 26 '23 11:01 ekhaydarov

This issue is undeservedly staled We are revamping the fluentd image building so we are taking a look at this now!

tarokkk avatar Apr 04 '23 11:04 tarokkk

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jun 16 '23 17:06 stale[bot]

The problem, why this has not yet been implemented is the complexity it brings into the already complex and big fluentd image.

One idea I have at the moment is to create a base image that includes the base components only without any third party outputs, so that it is small and faster to build. Users of the the operator can than depend on this base image and add their combination of output plugins on top of that, which would work for their specific use case.

The only thing that bothers me in this case is that we cannot easily decide from the logging operator if an output is supported by the image or not, so if someone sees the google stackdriver output configuration could naively assume, that it is supported in the base image and they would be surprised, that they have to build their own.

Any thoughts?

pepov avatar Jul 04 '23 12:07 pepov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Sep 02 '23 12:09 stale[bot]

Hi @pepov, THanks for taking a look. II'm pretty sure its not possible but a bare base image with no outputs would be quickets, then at runtime install additiona outputs that the end user needs.?

ekhaydarov avatar Sep 02 '23 12:09 ekhaydarov

@ekhaydarov we don't have a method to install plugins at runtime, if someone needs more outputs they have to build a custom image or they will be able to run multiple aggregators (through multiple logging resources) and use different images on each.

pepov avatar Sep 04 '23 10:09 pepov

There is another option which some of the core maintainers would be open to explore, which is implementing an output for the syslogng based aggregator.

There are two possible solutions in that case as well: migrate to the syslog-ng based aggregator or use a separate syslog-ng logging without a fluentbit agent and relay logs designated in stackdriver into that aggregator.

Let me know if any of the above would work for you.

pepov avatar Oct 09 '23 11:10 pepov

With the introduction of the new multi-stage image build it is now possible to have an image that supports Google Stackdriver only without having to pull the ruby dependency hell into our full image, which is already quite large. Given this, we can finally implement the required API in the Logging Operator as well. In case someone would need an image that contains not just the Stackdriver output they will have the option to base off of our stackdriver image quite easily.

pepov avatar Apr 30 '24 14:04 pepov

anyone still interested in this?

pepov avatar Jun 18 '24 13:06 pepov