Skip to content

Editing Log data? #654

Answered by nborof
nborof asked this question in Q&A
Oct 30, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Thank you both for writing back!

After some fiddling around, I got it to work. Here's what worked for me (in case anyone else ever wants to do something like this).

To list the active docker containers, type:
[docker container ls]

Find the name of the container with "nginx" in the name (aka "fermentrack-tools_nginx_1"). Then type:
docker exec -ti [CONTAINER NAME] ls -al data

This will list all of the logs. Find the filename of the log you want to edit that ends with "_graph.csv". The only text editor I could see in the container was vi - which I always have to re-learn how to use every time. :-)

Then type:
docker exec -ti [CONTAINER NAME] vi "data/[FILE NAME]"

Find the lines you want to r…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@thorrak
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nborof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants