Linux - Find log files opened by a process, List .log files open by a pid

Find log files opened by a process

List .log files open by a pid or by a particular process

 lsof -p 1234 | grep -E "\.log$" | awk '{print $NF}'

Uses lsof to display the full path of ".log" files opened by a specified PID.

You can find what a process have done. By using the process id you can analyze the log files of the process.

The topic on Linux - Find log files opened by a process is posted by - Math

Hope you have enjoyed, Linux - Find log files opened by a processThanks for your time

Tech Bluff