I do, I run nx as nx and all the file permissions are correct. I'll have to take a look at it later, I'm sure it's something obvious.
-----Original Message----- From: Botond Botyanszki [mailto:b...@nxlog.org] Sent: Monday, November 07, 2016 10:53 AM To: nxlog-ce-users@lists.sourceforge.net Subject: Re: [nxlog-ce-users] Calling external script for log rotation Hi Paul, This is most likely related to permissions and file ownership. When testing make sure you run the script under the same user/group that nxlog is running under e.g. using "su". Regards, Botond On Mon, 7 Nov 2016 02:45:23 -0700 "Paul Fontenot" <ssdv6...@gmail.com> wrote: > Hello, > > I have an external script that I use on Centos 6 that is called for > log rotation and works great, I have the exact same script on a Centos > 7 box and it will create the directory but will not rotate the logs. > The setups are identical with the exception of Centos version and I've > found nothing searching Google to give me a hand. There are no errors > in the nxlog internal log and if I run it by hand it works just fine. > I suspect at this point I'm missing the forest for the trees. > > > > How I call the script: > > > > <Output logs_all_out> > > Module om_file > > Exec to_syslog_bsd(); > > File '%LOGALL%' > > <Schedule> > > When @daily > > Exec > exec("/usr/local/sbin/rotate_logs.sh",'%FILENAME%','%LOGALL%'); > logs_all_out->reopen(); > > </Schedule> > > </Output> > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users