Closed klauer closed 1 year ago
I think if we end up going this route:
Ran out of dev database space pretty quickly with this one. It will absolutely require rollover and perhaps an adjustment to the retention policy. Cleared bi-monthly or so?
May consider paring down the document details as well. No real need to duplicate into the sub-dict log
, it just follows conventions of the others.
Thought I had a few months (a year?) ago:
I can't find a way to do this as dynamically as I want natively in logstash itself. Though you can run arbitrary ruby code in a pipeline, there does not appear to be a different scope on a per-file basis or anything along those lines.
I'm not comfortable enough with ruby to make an attempt at something like this, and Python will be more easily maintainable for our team in the future. So, I think an okayish solution would include:
Start of this is here: https://github.com/pcdshub/epics-log-squasher
Closing this as we'll use the Loki-based solution @jbellister-slac is working on
TL;DR
This works, overall.
Notes
ls /reg/d/iocData/ioc-*/iocInfo/ioc.log|wc -l
->997
) open onctl-logdev01
according to an informal check with htopScreenshots