-
Notifications
You must be signed in to change notification settings - Fork 19
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
Update elk docker image and swap out logstash #26
Conversation
oh interesting - how would one not have to build a dashboard by hand... must be some way to import a thing... but yes, any progress is good. we'll get it built and tried soon enough. |
Yeah, they have their own |
Ah, very good. We do love a nice text format. |
68ed88a
to
c3047e6
Compare
Updated container to run the still-relevant bits of the old startup script and create the index pattern, visualization objects, and dashboard automatically on first run. |
c3047e6
to
90b65b1
Compare
Updated container to elk 8 |
awesome - will definitely need a walkthrough/demo of this. |
Swapped logstash for a python script. |
For 4.3.0, four of the visualizations in the dashboard were empty, so I pointed them at a different rule name. I think this will make the container incompatible with 4.2, but now it works with 4.3.0. |
So the only difference between 4.2 and 4.3 is the PEP names. We can make the ndjson file mountable (
Doing that allows us to build a single docker image that supports 4.2 and 4.3. docker-compose would also be supported. The training slides would require trivial tweaks to sync with this scheme. |
this is quite promising. |
I'm not a fan of that particular solution. I think there's a way we can set up the visualizations to look for either pep name, that way we can have a single |
Are you saying you think there's native support for conditionally doing this in kibana/ndjson/etc? If yes, I agree that would likely be the better approach, especially if it is simple to grasp (i.e. fewer moving parts). Anything more complicated than a volume mount is probably the wrong way to go. Eventually, the things related to 4.2 will be dropped leaving only 4.3 (hopefully sooner than later). Keeping that in mind while we discuss the pros/cons of each solution for this will help us make the correct decision. |
0b95d58
to
3a45242
Compare
Yes, and I've just pushed up the new |
Nice! Will take a look. Was there anything you noticed that we need to keep an eye out for in the future? |
We also need to document (for our future selves) how to tweak the ndjson file. You could include a README in the irods_audit_elk_stack directory that captures those steps. It could also reference the kibana/elastic docs for whatever version you used to make this all work. |
Not so much stuff we need to look out for, but stuff we need to do.
Yes, and how to update it for newer versions of kibana.
Roger dodger. |
465d59e
to
caac826
Compare
Considering how long it takes me to write good documentation for this kind of thing, I decided it would be faster to go ahead and rip systemd out of the container instead of documenting the jank that comes from running systemd in a container for our use case. It ended up taking way longer than I anticipated to update the Kibana I've pushed this up now, along with some small container optimizations and a WIP of the README I'm working on. Getting away from systemd allows us to perform in the Dockerfile all the first-time setup previously handled by |
Should we start reviewing this or wait until the PR status changes from "draft"? |
Review away! Everything is done except the README |
caac826
to
f534d8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
The README made me delete some of my comments, so good stuff.
A humorous (to me) observation: |
42b4af4
to
5ef9e8a
Compare
f83170b
to
73e8347
Compare
- Updated to elk 8 - Loads of cleanup - Swapped logstash for a python script - New startup script sets up the kibana index pattern and dashboard - Dashboard visualization now look for both 4.2 and 4.3 PEP names - Must be run with --privileged Squashed commit: [irods#28] Remove systemd from elk container
73e8347
to
7abba69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it!
Who needs to be poked to get this merged? |
@alanking ping! |
Now watching this repo :) |
Updating this docker image as part of the effort to figure out what's going on with our audit plugin training setup.
Still a work-in-progress. Should probably be using alpine or something instead of relying on systemd.
Using elasticsearch 7 for now, as the kibana in the repo for elasticsearch 8 does not support importing json saved objects.