Bash tail monitor log file

Hi there,

I have a problem here that involves bash script since I was noob in that field. Recently, I have to monitor data involve in logs so I just run command tail -f for the monitoring. The logs was generate every hour so I need to quickly change my logs every time the new hour hits according to logs that been formatted in name-hour-date-month-year.log.

So here I think I would appreciated if someone can show me how to create a bash script that run the tail command or anything in similar and auto change the log file that need to be monitor when the new hour comes.

Please advice
TQ.
:rolleyes:

How are you doing this manually? The moving file names part....

i usually stop the tail command and manually run back with the new name of file (new hour time)..