Re: logrotate strange argus behavior
Monah Baki <[email protected]> Wed, 24 Oct 2018 10:58:46 -0400
| Newsgroups | gmane.network.argus |
|---|---|
| Message-ID | <CALP3=x9M0kZPu_iWt8MiXJ0OkYZGcHmAMgUkh+GyuX9AevKeHw@mail.gmail.com> |
--0000000000003d1ebf0578fab6de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Carter, My argus.conf has: ARGUS_OUTPUT_FILE=3D/var/log/argus/argus.out I can also for testing purposes run the -w option from the command line, what do you think? Regards, Monah On Wed, Oct 24, 2018 at 10:52 AM Carter Bullard <[email protected]> wrote: > Hey Monah, > Both programs have the exact same logic for output files, so it maybe how > you=E2=80=99re running or configuring argus ?? > What=E2=80=99s in your argus.conf, or are you using =E2=80=9C-w file=E2= =80=9D on the command line > ??? > > Carter > > > On Oct 24, 2018, at 8:36 AM, Monah Baki <[email protected]> wrote: > > > > Hi all, > > > > I'm using logrotate to rotate both argus.out and radium.out. Here is my > /etc/logrotate.d for radium and argus > > > > > > /var/log/radium/radium.out { > > missingok > > notifempty > > compress > > size 100M > > daily > > create 0600 root root > > } > > > > > > > > /var/log/argus/argus.out { > > missingok > > notifempty > > compress > > size 100M > > daily > > create 0600 root root > > } > > > > > > radiums config works fine, but for the argus once it creates the > compressed file and moves it, argus.out is always 0 bytes, only way to ha= ve > argus log back to argus.out it is to kill the argus pid and start argus. > While radium keeps logging to radium.out. > > > > > > Thanks > > Monah > > > > --0000000000003d1ebf0578fab6de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">Hi Carter,<div><br></div><div>My argus.co= nf has:</div><div><div>ARGUS_OUTPUT_FILE=3D/var/log/argus/argus.out<br></di= v><div><br></div></div><div>I can also for testing purposes run the -w opti= on from the command line, what do you think?</div><div><br></div><div><br><= /div><div>Regards,</div><div>Monah</div></div></div><br><div class=3D"gmail= _quote"><div dir=3D"ltr">On Wed, Oct 24, 2018 at 10:52 AM Carter Bullard &l= t;<a href=3D"mailto:[email protected]">[email protected]</a>> wrote:<b= r></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border= -left:1px #ccc solid;padding-left:1ex">Hey Monah,<br> Both programs have the exact same logic for output files, so it maybe how y= ou=E2=80=99re running or configuring argus ??=C2=A0 =C2=A0<br> What=E2=80=99s in your argus.conf, or are you using =E2=80=9C-w file=E2=80= =9D on the command line ???<br> <br> Carter<br> <br> > On Oct 24, 2018, at 8:36 AM, Monah Baki <<a href=3D"mailto:monahbak= [email protected]" target=3D"_blank">[email protected]</a>> wrote:<br> > <br> > Hi all,<br> > <br> > I'm using logrotate to rotate both argus.out and radium.out. Here = is my /etc/logrotate.d for radium and argus<br> > <br> > <br> > /var/log/radium/radium.out {<br> >=C2=A0 =C2=A0 =C2=A0missingok<br> >=C2=A0 =C2=A0 =C2=A0notifempty<br> >=C2=A0 =C2=A0 =C2=A0compress<br> >=C2=A0 =C2=A0 =C2=A0size 100M<br> >=C2=A0 =C2=A0 =C2=A0daily<br> >=C2=A0 =C2=A0 =C2=A0create 0600 root root<br> > }<br> > <br> > <br> > <br> > /var/log/argus/argus.out {<br> >=C2=A0 =C2=A0 =C2=A0missingok<br> >=C2=A0 =C2=A0 =C2=A0notifempty<br> >=C2=A0 =C2=A0 =C2=A0compress<br> >=C2=A0 =C2=A0 =C2=A0size 100M<br> >=C2=A0 =C2=A0 =C2=A0daily<br> >=C2=A0 =C2=A0 =C2=A0create 0600 root root<br> > }<br> > <br> > <br> > radiums config works fine, but for the argus once it creates the compr= essed file and moves it, argus.out is always 0 bytes, only way to have argu= s log back to argus.out it is to kill the argus pid and start argus. While = radium keeps logging to radium.out.<br> > <br> > <br> > Thanks<br> > Monah<br> > <br> <br> </blockquote></div> --0000000000003d1ebf0578fab6de--