Refine your search:

Hi all, I'm studying how to apply splunk to my architecture. I've a simple question about log monitoring. I've a cluster failover with different oracle instances. Now for example INSTACE1 is running on nodeA and INSTANCE2 is running on nodeB. So I have on nodeA the alert log in path /opt/oracle/instance1/diag/rdbms/instance1/INSTANCE1/trace/alert_INSTANCE1.log

Ok, with a forwarder I can setup the reading of log in a very simple way. But how I can define to monitor this log on both nodeA (when instance is running on nodeA) and on nodeB (when instance switches on nodeB)? Hence the same question may be applied to process monitoring, process ora_pmon_INSTANCE1 should run at least on one node...

Any interesting idea?

Thanks Ste

asked 12 Apr '12, 10:44

scislaghi's gravatar image

scislaghi
211
accept rate: 0%

can you clarify what happens to the file on failover? If you fail instance 1 over from nodeA to nodeB, does the new instance 1 that is running on nodeB start writing to a new file? Or does the old file get moved over from nodeA to nodeB, and then the new instance starts appending to the moved copy of the file?

(12 Apr '12, 16:06) gkanapathy ♦

Log file is on ashared filesystem and in case of failover the filesystem is dismounted from nodeA and remounted on nodeB. You'll write on the same file in the same path on a different node.

(12 Apr '12, 22:21) scislaghi

One Answer:

Could you not monitor both files all the time?

If the paths are the same, you could have the same config on both/all forwarders (I'm assuming that you have more than one host).

[monitor:///opt/oracle/instance*/diag/rdbms/instance*/INSTANCE*/trace/alert_INSTANCE*.log]

Or am I missing something?

/Kristian

link

answered 12 Apr '12, 11:31

kristian.kolb's gravatar image

kristian.kolb
9.8k615
accept rate: 33%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×96
×48
×35

Asked: 12 Apr '12, 10:44

Seen: 532 times

Last updated: 12 Apr '12, 22:21

Copyright © 2005-2012 Splunk Inc. All rights reserved.