conmon icon indicating copy to clipboard operation
conmon copied to clipboard

adding support to forward containers output to splunk via hec connector

Open dbloms opened this issue 2 years ago • 8 comments

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.

dbloms avatar Jun 01 '22 05:06 dbloms

@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 :)

chillout2k avatar Jun 01 '22 06:06 chillout2k

this would be valueable also for me

andreasschulze avatar Jun 01 '22 07:06 andreasschulze

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

rhatdan avatar Jun 01 '22 14:06 rhatdan

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

haircommander avatar Jun 01 '22 15:06 haircommander

@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

chillout2k avatar Jun 10 '22 07:06 chillout2k

You should open the issue in conmon-rs

rhatdan avatar Jun 12 '22 10:06 rhatdan