Date: Thu, 13 Dec 2001 13:19:17 -0600 From: jacks@sage-american.com To: Donnie Jones <donniejones18@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: IPFM ( IP Flow Meter) log rotation. Message-ID: <3.0.5.32.20011213131917.03dc67c8@mail.sage-american.com> In-Reply-To: <20011213190013.7853.qmail@web20603.mail.yahoo.com> References: <3.0.5.32.20011213104923.03dc67c8@mail.sage-american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Donnie: Yes, I understand why you did it that way, but was wondering if you tried the exact name for the first one with the wildcard..?? I am fresh from the trenches yesterday in setting up some log rotations, but I am unclear as whether newsyslog will read those variables or not.... one would aSSume, but maybe not.... it's not mentioned in the man, but perhaps someone else could verify that. At 11:00 AM 12.13.2001 -0800, Donnie Jones wrote: > >--- jacks@sage-american.com wrote: >> Have you tried not using the wildcard for one >> thing... why not use the >> exact log name...??? >> >> At 07:54 AM 12.13.2001 -0800, Donnie Jones wrote: >> >Heya, >> > >> >I am trying to set up newsyslog to rotate my logs >> >for IPFM to keep my /var partition from filling up. >> > >> >The problem is that I can't get newsyslog to >> recognize >> >the filenames for the IPFM log files. >> > >> >newsyslog.conf: >> ># logfilename [owner:group] mode count >> >size when [ZB] [/pid_file] [sig_num] >> > >> >/var/log/ipfm/*.log 600 12 100 * Z >> >/var/log/ipfm/%d-%b.%H-%M-internet.log 600 12 >> 100 >> > * Z >> > >> >ipfm.conf: >> ># IPFM logging rules >> >DEVICE fxp0 >> >LOG >> >FILENAME /var/log/ipfm/%d-%b.%H-%M-internet.log >> >TIME 1 minute >> > >> >This is the command I am running: >> > >> >newsyslog -n -v -F -a /home/logs/ >> > >> >and the output: >> > >> >/var/log/ipfm/*.log <12Z>: does not exist. >> >/var/log/ipfm/%d-%b.%H-%M-internet.log <12Z>: does >> >not exist. >> > > >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >I did try the exact log name as shown above. But the >filename for the log file will change with the >date,minute, and hour of when the log file is written. > >Do you see my problem now? > >> > >> >It seems that newsyslog will not recognize the * in >> >a filename. >> > >> >Any ideas how I could get newsyslog to recognize >> these >> >files without having to take away the date from the >> >IPFM log filename. >> > >> >Thanks. >> > >> >-Donnie >> >> Best regards, >> Jack L. Stone, >> Server Admin >> >> Sage-American >> http://www.sage-american.com >> jacks@sage-american.com > > >__________________________________________________ >Do You Yahoo!? >Check out Yahoo! Shopping and Yahoo! Auctions for all of >your unique holiday gifts! Buy at http://shopping.yahoo.com >or bid at http://auctions.yahoo.com > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > Best regards, Jack L. Stone, Server Admin Sage-American http://www.sage-american.com jacks@sage-american.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20011213131917.03dc67c8>