Need to read only last line from my log file and post it to centralized log
Tags:
#1
Vijay
We are looking the log file for n number of Application and pushing into one centralized log. We are reading the log file for every 15 min.Now I want read only last line of all logfiles and need to push that into centralized log. Any cone could you please help on this.
#1
Vijay
We are looking the log file for n number of Application and pushing into one centralized log. We are reading the log file for every 15 min.Now I want read only last line of all logfiles and need to push that into centralized log. Any cone could you please help on this.
Hi,
I suppose this might be a helpful hint to solve your task:
https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html#im_exec_config_examples
Good luck!
Rafal