J
J
Jebati2019-06-02 16:06:13
linux
Jebati, 2019-06-02 16:06:13

How to parse screenlog without a file?

Hello.
All the time, I was parsing the console of various servers running in screen from the screenlog.0 log file, but I thought maybe there is an alternative for screen that can transfer the text of the process output, for example, over a socket, because it would be much faster. What if this can be implemented by screen itself...
screen -AmdS L srv1 java -jar core.jar
L - writes a log file. I can’t change core.jar itself (in order to transfer my own logs, over the socket), because there are many variations of it, and changing everything is somehow not rational.
I have a debian8 distribution.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2019-06-02
@saboteur_kiev

You can read from the log and redirect through the network:
nc -l -p -c "tail -f file.log"
Or even just
nc -l -p -e
./myjar.jar tried.

R
Ruslan Fedoseev, 2019-06-02
@martin74ua

logstash?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question