Skip to content
Snippets Groups Projects
Select Git revision
  • e75d4eb9f28cf56a0e8f0554626825cd010e4a36
  • master default protected
  • L2SS-1957-remove-pcon-control
  • expose-prometheus
  • stabilise-landing-page
  • all-stations-lofar2
  • L2SS-2357-fix-ruff
  • control-single-hba-and-lba
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • fix-missing-init
  • add-power-hardware-apply
  • L2SS-2129-Add-Subrack-Routine
  • Also-listen-internal-to-rpc
  • fix-build-dind
  • L2SS-2153--Improve-Error-Handling
  • L2SS-2153-Add-Grpc-Gateway-support
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
  • v0.52.1.1 protected
  • v0.52.1 protected
  • v0.52.1-rc1 protected
  • v0.51.9-6 protected
  • v0.51.9-5 protected
  • v0.51.9-4 protected
  • v0.51.9-3 protected
  • v0.51.9-2 protected
  • v0.51.9-1 protected
  • v0.51.9 protected
  • v0.51.8 protected
  • v0.39.15-wsrttwo protected
  • v0.39.15-wsrt protected
  • v0.39.14-wsrt protected
  • v0.51.6 protected
  • v0.51.5-1 protected
  • v0.51.5 protected
41 results

logs.rst

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    logs.rst 2.12 KiB

    Logs

    The devices, and the docker containers in general, produce logging output. The easiest way to access the logs of a specific container is to ask docker directly. For example, to access and follow the most recent logs of the device-sdp container, execute on the host:

    docker logs -n 100 -f device-sdp

    This is mostly useful for interactive use.

    ELK

    To monitor the logs remotely, or to browse older logs, use the ELK stack that is included on the station, and served on http://localhost:5601. ELK, or ElasticSearch + Logstash + Kibana, is a popular log collection and querying system. Currently, the following logs are collected in our ELK installation:

    • Logs of all devices,
    • Logs of the Jupyter notebook server.

    If you browse to the ELK stack (actually, it is Kibana providing the GUI), your go-to is the Discover view at http://localhost:5601/app/discover. There, you can construct (and save, load) a dashboard that provides a custom view of the logs, based on the index pattern logstash-*. There is a lot to take in, and there are excellent Kibana tutorials on the web.

    To get going, use for example this dashboard, which shows the logs of the last hour, with some useful columns added to the default timestamp and message columns. Expand the time range if no logs appear, to look further back. You should see something like:

    elk_last_hour.png

    ELK allows you to filter, edit the columns, and a lot more. We enrich the log entries with several extra fields, for example the device that generated it, and stack traces if available. Click on the > before a log entry and the information expands, showing for example:

    elk_log_fields.png

    Furthermore, statistics from the ELK stack, such as the number of ERROR log messages, are made available as a data source in :doc:`monitoring`.