Operating System - HP-UX
1834497 Members
2839 Online
110067 Solutions
New Discussion

Re: SYSLOG and logging Appl Entries

 
John J Archer
Occasional Contributor

SYSLOG and logging Appl Entries

I have an application that was ported from individual unix PCs (a Workstation = WST) to a K360. On the K360 each WST instance longs information in to a log file specifically for that instance WST and each WST has 6 or more concurrently executing programs each logging into the instance logfile. The current log function that is used opens a specified log WST file, writes the entry and closes the file. This is controlled by a WST assigned semaphore. My question is this: Is it possible to have multiple SYSLOGD processes executing on the K360 at one time (grouped by a number of WSTs) and be able to have those WSTs use SYSLOG to make thier entries to each WSTs log file based on say local0:7 references???
3 REPLIES 3
RAC_1
Honored Contributor

Re: SYSLOG and logging Appl Entries

It is poosible to log to different files through syslogd, if your application uses different log local log info.

e.g. if one apps uses local3, you can use it as follows. (in /etc/syslog.conf file)

local3.info /var/adm/syslog/apps1.log
local4.info /var/adm/syslog/app2.log

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: SYSLOG and logging Appl Entries

I would suggest that you have a seperate log for this application.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John J Archer
Occasional Contributor

Re: SYSLOG and logging Appl Entries

I know that multiple log files are possible but I would like to have 100 seperate log files. One for each WST and even if I can do this through a single SYSLOGD, I'm afraid that the volume would overload that single process. I'd like to have several SYSLOGD processes running at a time.