Diverting an app log to the syslog


 
Thread Tools Search this Thread
Operating Systems AIX Diverting an app log to the syslog
# 1  
Old 04-06-2010
Diverting an app log to the syslog

My windows developers want to scan an Oracle log live; samba won't give them what they want. They are trying to scan logs with Microsoft Operations Monitoring. I set up syslog to export to the external windows server and that is working, but is there a way to send the updates to the oracle log to the syslog?
Someone suggested a named pipe. Seems like a hack, but they want to do this through their MOM product.
# 2  
Old 04-07-2010
Quote:
Originally Posted by tommysalami
but is there a way to send the updates to the oracle log to the syslog?
This would depend on the Oracle software. Syslog is a set of system functions which are called by the software to create syslog entries. These entries are received by the syslogd and written to the various destinations, depending on the configuration in "/etc/syslog.conf". To generate a syslog entry is the job of the application (or "facility" in syslogs wording), the syslogd just directs this to some place.

I'm no Oracle expert, so i don't know if Oracle can do this. It should be possible to write a small daemon program doing exactly what you want via syslogs mechanisms (that is: using the correct system calls, ...) in case Oracel provides no such service. I suppose this would be a better solution than to "mechanically" write into some file with some syslog-unaware means.

Forcefully overriding system mechanisms will cause trouble sooner or later, is my experience.

I hope this helps.

bakunin
# 3  
Old 04-08-2010
In reality for Oracle they ought to be using the Oracle Enterprise Manager to manage their Oracle setup, not crappy windows tools like MOM - which isn't fit for the purpose that they want to use here.

Some Security Auditing for Oracle can be written to the syslog using the AUDIT_SYSLOG_LEVEL parameter.

That said if the want to monitor a regular oracle log to debug stuff, that isn't the purpose of the syslog - or MOM. It would be easier for all concerned to teach them:

Code:
cd /oracle/adm/log
tail -f logfile

# 4  
Old 04-12-2010
Thanks, I ended up writing a dumb script to scan their log and send error messages to syslog using logger, and directing syslog to their MOM server.
It does what they want, and involves the windows team so they can keep their jobs.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies

2. OS X (Apple)

How can I direct messages from mac console.app to a log file?

I'm trying to complete a bash script to capture if an external webcam is active in a video conference session. Some users will switch the camera to the built-in MAC camera. When this happens I want to trigger a set of events. Things tried: reviewed the console.app to look for patterns on when... (6 Replies)
Discussion started by: dallas88
6 Replies

3. Shell Programming and Scripting

How to search the multiple strings in app server.log?

Hi Team, Could you please suggest the below requirement. using the below server log, i just want only the order_id with combination of customer name , error code value as 5000111 & amount value using the shell script i tired using the command grep "error_code>50001111"... (6 Replies)
Discussion started by: venkat918
6 Replies

4. Solaris

Problem with /app

Hi folks, i have a problem with my /app directory on solaris 10.It is mounted under rpool root and sometimes it increase dimension bringing root out of space.I want to mount /app under different position, maybe under secondary hardisk for which i have created a mount point with zfs pool...How... (10 Replies)
Discussion started by: mattpunk
10 Replies

5. Red Hat

userid with nothing to do on the os/app

Hi All, I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty. Can I just delete this userid? How can I investigate if userid have something to do with the application? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

6. Solaris

luminis app

The guys at SunGard want to charge a lot of $$$$ for installing Luminis and we are trying to see if this can be done without them. Their installation guide provided page #53 ( http://www.luminis.nocccd.edu/documents/Luminis%20IV/lp40000in.pdf ) doesn't really tell you much. All they say is that... (4 Replies)
Discussion started by: ceci1
4 Replies

7. Programming

Deadlocked App

Hello All - We have a legacy C program running non stop on one of our servers, with several instances often running at once. Fairly regularly, one of the instances while stop outputting to the log file and will just deadlock/hang. They must be then 'kill'ed by myself. When I gdb into one of... (3 Replies)
Discussion started by: markanderson
3 Replies
Login or Register to Ask a Question