-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appliance: create logsene-ready container #4
Comments
@hakman which certificates do I need to include into the appliance to ensure that https to logsene will work? Any suggestions on this config: https://github.com/rsyslog/rsyslog-docker/blob/master/appliance/alpine/rsyslog.conf.d/log_to_logsene.conf Would be great if you have a couple of minutes, I would really like to go beta with the container soon, at least in regard to Logsene ;-) Any general comments and suggestions are also appreciated. |
side-note: we already moved to a "real", alpine-based container. |
Actually, logging to Logsene via HTTPS should just work (via the certificates coming through the OS). Does it not? I assume you're talking about the certificates mentioned here? https://github.com/megastef/rsyslog-logsene/blob/master/rsyslog.conf#L14 Those would be for the TLS input of rsyslog. We could support this as well, if we generate them on container start, like @megastef did here: https://github.com/megastef/docker-logsene-kibana/blob/master/run.sh#L18-L19 |
One more thing: the same container could be used to push to any Elasticsearch cluster (though Elasticsearch itself doesn't support HTTPS, and the HTTP port defaults to 9200 - I guess the only missing step is to specify a port variable, and maybe an HTTPS one?). Other than those comments, I like this a lot. Thanks so much for the effort of putting it all together! |
I completely missed that ;- ) -- sorry for the noise...
I'll look into that, but I guess when we use anon mode, we should not need them and do all via D/H key exchange. Probably worth it's own issue. |
Yeah, it's just a starter config. I think the container is even more used by folks who do not know rsyslog. So I want to keep them off of the real config and use a meta-config instead. First version here: https://github.com/rsyslog/rsyslog-docker/blob/master/appliance/alpine/internal/container_config -- it probably explains better what I am after than a thousand words ;-) Rsyslog 8.33 will have a couple of config extension to make this easier to handle. Have a look at the main container rsyslog.conf: https://github.com/rsyslog/rsyslog-docker/blob/master/appliance/alpine/rsyslog.conf -- this is the actual rsyslog.conf, not something we use to generate a file from. So we can keep the container read-only. Of course, it is possible to override with any config of your liking, but I'd like to keep it focussed. So "generic elasticsearch" is one of the next destinations we need to implement.
Thanks for the motivation! Also please keep comments flowing. I am especially interested on feedback on the meta configuration layer. |
Note: we right now see some warning messages during shutdown. They are ok, but will probably trigger the creation of some issues on the main project (which is a good thing as we now have a reproducible test environment). |
just for completeness, this first beta is available here: https://hub.docker.com/r/rsyslog/syslog_appliance_alpine/ |
@rgerhards Hi, is there an ARMHF version of logsene-ready rsyslog container? |
@megastef I'm only aware of this Alpine container: https://github.com/rsyslog/rsyslog-docker/tree/master/appliance/alpine I guess that for supporting ARMHF we would "just" need to reuse the same Dockerfile, but with an ARMHF base distro. Ideally Alpine. This one looks OK to me (though I don't know much about ARMHF to begin with): https://hub.docker.com/r/arm32v6/alpine/ |
late to this story ;-) We would probably need to build rsyslog on armhf. I now have the hardware, but I admit the interest in alpine was so weak (no response for month until this posting) that I have mentally set it to low prio. If there is a larger community interest and (preferably) someone who wants to help maintain it, I would be all ears. |
|
As I said, hardware is not the issue. Time and someone willing to maintain it is the issue. I can't do everything ;-) |
This shall create a container that is ready to ship logs to Logsene with limited configuration. This task is neither to simple nor to complex, so it probably is a good starter to understand what we need to do.
Note that this is meant as a development / protoype kind of work. Once this works, we can create the real container. As such, we initially use an Ubuntu 16.04 dev container, as this provides for a quick compile and link cycle.
Steps to do:
./tests/test_logsene.sh
in personal dev environmentThe text was updated successfully, but these errors were encountered: