Skip to content

erses README

This ERS output stream implementation takes ERS issues, transforms them into nlohmann::json objects and injects them directly into an elastic search database instance. The database connection string is specified as a parameter to the erses stream. At CERN the connection string is dunedaqutilities/erses.

Configuration

The erses plugin is configured through the ERS settings. Users that want make use of it need to define/extend the following ERS environment variables:

  1. Tell ERS to load the erses plugin. The liberses.so shared library shall be in the LD_LIBRARY_PATH:

export DUNEDAQ_ERS_STREAM_LIBS=erses

  1. Se the partition name. The partition name allows to clearly distinguish the origin of the ERS messages, thus avoiding mixing information from different DAQ instances:

export DUNEDAQ_PARTITION=ChooseYourPartitionName

  1. Extend the ERS variables which define the output streams to be used for Issues of different severities:

export DUNEDAQ_ERS_INFO"erstrace,throttle(30,100),lstdout,erses(dunedaqutilities/erses)"

export DUNEDAQ_ERS_WARNING="erstrace,throttle(30,100),lstderr,erses(dunedaqutilities/erses)"

export DUNEDAQ_ERS_ERROR="erstrace,throttle(30,100),lstderr,erses(dunedaqutilities/erses)"

export DUNEDAQ_ERS_FATAL="erstrace,lstderr,erses(dunedaqutilities/erses)"

Dependencies

This package depends on nlohmann_json and cpr.


Last git commit to the markdown source of this page:

Author: glehmannmiotto

Date: Wed May 19 09:17:52 2021 +0200

If you see a problem with the documentation on this page, please file an Issue at https://github.com/DUNE-DAQ/erses/issues

Back to top