EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit b38dbb6b authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

add note about cleanup of logs from cws

parent dda3dff9
No related branches found
No related tags found
No related merge requests found
......@@ -59,4 +59,19 @@ A new deployment of the stack will use the updated configuration. The above
mentioned process necessarily involves a certain service downtime between
shutting down of the stack and new deployment.
Cleaning up
-----------
Current configuration of the services does not have any log rotation set up, which means that service logs can grow significantly over time, if left not maintained and set on verbose logging levels. In order to delete logs older than 7 days from a single node, a following command can be run
.. code-block:: bash
journalctl --vacuum-time=7d
Additionally in order to delete older logs from docker containers present on a node, keeping only a certain number of newest rows, a following command can be run.
.. code-block:: bash
truncate -s <number rows to keep> $(docker inspect -f '{{.LogPath}}' $container 2> /dev/null)
The final section :ref:`ingestion` explains how to get data into the VS.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment