pcdshub / pcds-logstash

logstash configuration for lcls-twincat-general Beckhoff PLC logging, Python logging via pcdsutils, and EPICS IOC caPutLog
1 stars 1 forks source link

ENH: tail *all* the EPICS IOC log files #20

Closed klauer closed 1 year ago

klauer commented 3 years ago

TL;DR

This works, overall.

Notes

Screenshots

image
klauer commented 3 years ago

I think if we end up going this route:

klauer commented 3 years ago

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.

klauer commented 2 years ago

Thought I had a few months (a year?) ago:

klauer commented 1 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:

klauer commented 1 year ago

Start of this is here: https://github.com/pcdshub/epics-log-squasher

klauer commented 1 year ago

Closing this as we'll use the Loki-based solution @jbellister-slac is working on