harry franks ([EMAIL PROTECTED]; Monday, March 10, 2003 12:51 PM):
> I know this may seem to be a dumb question, but I am having trouble with > getting analog to use a cache file and rotating logs > the current log setup is in a file structure like this > #year > 2003 > #month > 01 > #days of month > 01 > 02 > 02 > ..... > I have configured analog to take in the log files in such format from the > cnf file > LOGFILE /var/tmp/logs/*[0-9]/*[0-9]/*[0-9] > this setup takes in all log files. > due to logfiles getting destroyed sometimes and a need for a quicker file > method, I have decided a cache would be a good idea. > i would like to be able to grab at most a month of current log files and > use a cache file. > is there any regular expression syntax for only getting the last logfile > (aka the one with the greatest number) > if analog does not support it the best method I could come up with is > creating a current pointer to point to the last one. > if anyone else has done this, please message me I can't think of any way to tell analog to grab the last log file. But you could do it with the date command from the command line: analog /var/tmp/logs/`date +%Y`/`date +%m`/`date +%d` That would get you a log file with today's date. To do it for one with yesterday's date just add '-d yesterday' to each date command. -- Jeremy Wadsack Wadsack-Allen Digital Group +------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.isite.net/listgate/analog-help/unsubscribe.html | | Digest version: http://lists.isite.net/listgate/analog-help-digest/ | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------