Hello,
I'm new to shell scripting and did a search on the forum to what I want to do but couldn't find anything.
I have about 9 routers that outputs to 1 syslog file daily named cisco.year.mo.date.log ex: cisco.2009.05.11.log
My goal is to make a parsing script that cats today's syslog file, grep the router's hostname in the file, and output it to a text file with today's date and hostname, and continue to append to that file until the next day. I intend to make this script run every 30 minutes which is something I know how to do via the crontab. If a router doesn't generate a syslog file then skip that hostname. This is so it will be easier for me to see if that router generated a syslog file and what happened to it. Any help or guidance will be greatly appreciated
Thanks in advance