containers / conmon

An OCI container runtime monitor.
Apache License 2.0
419 stars 127 forks source link

adding support to forward containers output to splunk via hec connector #340

Open dbloms opened 2 years ago

dbloms commented 2 years ago

We do currently use docker on Debian 11 and let the containers log on stdout through the Splunk logging driver (https://docs.docker.com/config/containers/logging/splunk/) via HEC (https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector) into Splunk.

In term of docker-compose this gives us the possibility to configure Splunk-logging on a per deployment basis, which is very comfortable as well as independent of any central configuration.

We would like to move to Podman on RHEL8 servers. Everything works fine so far, but we didn't find a way to log stdout of the containers via the HEC interface into Splunk, as the currently available podman version 4 does not provide such a splunk logging driver.

Is there a solution on the part of Podman to log the output of the containers into Splunk.

If not, is it possible to commission a corresponding development against payment?

I opened a feature request in the podman repo and I was told to open the request in this repo.

chillout2k commented 2 years ago

@dbloms: we do also use the the splunk logging driver in our docker deployments and we would be very pleased if podman would support it too. From my point of view this logging driver is an important feature to make podman a real drop-in-replacement for docker in (splunk-specific) production environments.

Thanks in advance :)

andreasschulze commented 2 years ago

this would be valueable also for me

rhatdan commented 2 years ago

This seams reasonable to me. Do we do this in conmon or conmon-rs is the question? @haircommander @vrothberg @mheon @WDYT?

haircommander commented 2 years ago

I think adding in conmon-rs would be easier (assuming podman integration happens in a timely manner).

chillout2k commented 2 years ago

@haircommander, @rhatdan: ping ;-)

Is it possible to push this feature request? @dbloms offered to pay for it if possible 👍

This might be interesting too: https://github.com/moby/moby/issues/16207

rhatdan commented 2 years ago

You should open the issue in conmon-rs

mehdik2023 commented 4 months ago

As mentioned in conmon-rs issue, am trying to raise this feature request in the list.

Petaris commented 1 week ago

This is also an issue for us. We currently use this feature in Docker and would not like to loose it.