how do I send logs but keep a local copy

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

how do I send logs but keep a local copy

Post 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
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

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

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

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

Post 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!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked