Page 1 of 1

how do I send logs but keep a local copy

Posted: Wed Dec 12, 2018 12:18 pm
by benhank
Howdy !

I have servers running hpux 11.31 and a few linux servers.
I want to have those servers send a copy of their syslogs to NLS but also keep a copy on the localhost.
Ideally I would like to edit the

Code: Select all

/nagioslogserver/scripts/setup-linux.sh
which will make it easier for my admins to get thier servers sending their logs

Re: how do I send logs but keep a local copy

Posted: Wed Dec 12, 2018 2:21 pm
by cdienger
The script adds an additional configuration file to send logs to a remote NLS server but shouldn't impact how they are stored locally or prevent them from being stored locally. /etc/rsyslog.conf by default will dictate where the logs are stored locally.

Re: how do I send logs but keep a local copy

Posted: Thu Dec 13, 2018 10:36 am
by benhank
AH ok I see. Well the script work on a system running hpux 11.31 ? I suspect it will but i gotta dbl check.

Re: how do I send logs but keep a local copy

Posted: Thu Dec 13, 2018 2:49 pm
by scottwilkerson
benhank wrote:AH ok I see. Well the script work on a system running hpux 11.31 ? I suspect it will but i gotta dbl check.
I'm not 100% sure, it really depends on what your hpux system has on it as a syslog agent and config location.

You may need to roll your own based off of the "manual" instructions under "+ Add Log Source" -> Linux -> Manual (rsyslog)

Unfortunately, we do not have a hpux 11.31 system in house to test this on.

Re: how do I send logs but keep a local copy

Posted: Fri Dec 14, 2018 1:51 pm
by benhank
That's cool,
ill have my guys test the script and if that doesn't work we will test the the manual setup. you can lock it up ill post later how we got it to work on hpux.
Thanks!

Re: how do I send logs but keep a local copy

Posted: Fri Dec 14, 2018 1:54 pm
by scottwilkerson
benhank wrote:That's cool,
ill have my guys test the script and if that doesn't work we will test the the manual setup. you can lock it up ill post later how we got it to work on hpux.
Thanks!
Great! Have a good weekend!