Closed dougburks closed 1 year ago
Thanks Doug. I've actually implemented this locally but my nsm filled up because of the issue below (I am aware this is an unsupported config):
https://github.com/google/stenographer/issues/214
I had patched steno's config
and init.sls
to make the multiple folders and use them. It worked fine until stenotype tried to cleanup at 10% free disk space on /nsm
.. because it's working on one disk, the threads don't clean up the same as if each thread had a separate disk. The above issue describes this.
Not sure how you're building the rpm referenced in so-steno
's Dockerfile, but maybe you can add a patch from https://github.com/rskjetlein/stenographer/commit/6f6d2cb258066a05d8c55f4548f5cfc06847a6bd to the source you use.
Fork that includes what I did to get so-steno
to write to multiple folders.
https://github.com/jtgreen-cse/securityonion/tree/jtgreen-cse-patch-1
I've compiled stenotype
and stenographer
with the random thread picker commit as seen in the previous comments. I inserted the new binaries in one of my so-steno
containers and manually applied the capabilities and correct perms. Everything now deletes correctly, no more filling up \nsm
. I'm looking forward to seeing this is prod as I don't want to maintain this duct tape :)
Thanks for the updates @jtgreen-cse !
We'll take a look as time allows.
2.4 has the option to run multiple steno threads pointing to different locations.
Originally posted by @jtgreen-cse in https://github.com/Security-Onion-Solutions/securityonion/discussions/7372
I'd like to use more than one thread with steno. My storage performs better if multiple processes are writing to it. I've added:
to
global.sls
. Things work well for a while until eventually I get this instenographer.log
:I'm going to guess that:
https://github.com/Security-Onion-Solutions/securityonion/pull/5911#pullrequestreview-782014392
is still a thing? May I suggest salt create separate folders for each thread so that they don't clobber each others files. I didn't create an issue since steno threads probably aren't ready for prime time. Just letting you know that there's at least one person waiting for it :)