I would like to grep error line from log file
I would like to grep error line from log file
Here is a good tutorial on how to use grep. In short grep [options] pattern [files]
. The error line would be the pattern and then pass the path to the log file.
@mya how does this help with telegraf? The OP asked how to selectively get a line from a file, he is aware of ‘grep’.