We have working example here:
https://www.i2rest.com/index.php/I2Rest_with_syslog
It is shown how to store syslog messages locally.
If you would like to forward messages to another syslog server, add something like this:
*.debug @<IP_Address>
to conf file. *.debug will forward all messages with severity level up to and including debug.
Regards,
Alexei
-------- Original Message --------
Subject : Configuring IBMi to log to Syslog server
From : Don Brown via MIDRANGE-L midrange-l@xxxxxxxxxxxxxxxxxx
To : midrange-l@xxxxxxxxxxxxxxxxxx
Cc : Don Brown <DBrown@xxxxxxxxxx>
Date : 6 августа 2020 г. 7:35
I am trying to configure the IBMi to log to a syslog server.
The documents I have found a very brief on an examples.
From what I can understand I need to do the following;
STRQSH and run command touch /QOpenSys/etc/syslog.conf to create the
empty configuration file.
Add the specific configuration - all I have so far is
@<IP_Address>
The to start the syslog daemon run;
SBMJOB CMD(STRQSH CMD('/QOpenSys/usr/sbin/syslogd')) JOB(SYSLOGD)
JOBQ(QSYSNOMAX)
To verify the syslogd daemon is started STRQSH and run the following
command
ps -ef | grep syslogd
Which gives me the following output
ps -ef | grep syslogd
qsecofr 538657 1 08-06-2020 14:15:42 - 00:00
pgm-syslogd
$
So I presume this is indicating it is running ?
I am working from the following documents;
https://ibmsystemsmag.com/Trends/11/2017/ibm-i-embraces-syslog (IBMi
Embraces Syslog)
https://www.ibm.com/support/pages/node/634791 (Syslog / Syslogd in PASE
for IBMi
Could anyone provide a working example or suggested reading ?
Thanks
Don
______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________
As an Amazon Associate we earn from qualifying purchases.