Retire iocLogserver
Bug #1786966 reported by
Martin Konrad
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
EPICS Base | Status tracked in 7.0 | |||||
7.0 |
Triaged
|
Low
|
Andrew Johnson |
Bug Description
With great opensource tools available there is no need for us to maintain our own log server anymore. We should document how alternatives like Logstash can be set up to replace iocLogserver. Once that's done we might be able to retire iocLogserver.
Changed in epics-base: | |
assignee: | nobody → Andrew Johnson (anj) |
status: | New → Triaged |
To post a comment you must log in.
My logstash configuration that replaces the iocLogServer program looks like this:
input { IOC_LOG_ INET:localhost} " IOC_LOG_ PORT:7004} " ${EPICS_ IOC_LOG_ PORT:7004} "
tcp {
host => "${EPICS_
port => "${EPICS_
id => "iocLog-
codec => "line"
}
}
output { to/logs/ ioc-%{+ YYYY-MM- dd}.json"
file {
path => "/path/
}
}
That output configuration creates a new file every day, but sites may send the messages straight off to their log database instead.
I'm wondering whether we might want to adjust the errlog code to support the multiline input codec by ensuring that there is a space after any '\n' that appears before the end of a message. I haven't found many multi-line messages which would need that so maybe it should be done by hand instead.
The epicsStackTrace.c code will not work well with the single-line codec but could be easily adjusted to work with the multiline one; there may be other examples that I'm not aware of. Here's the codec configuration I suggest we aim to support:
codec => multiline {
pattern => "^\s"
what => "previous"
}