Reputation: 1
I have the host details list and log directories. Keywords I need to get log for to be ingested into splunk on the below list Warning , Error , Critical , ORA-* logs
Upvotes: -2
Views: 793
Reputation: 618
Trying to break this into the main steps. Maybe some of the steps have already been followed but just scroll through.
The host will need to have the Universal Forwarder installed and sending data to your indexing tier.
You will need to create an app on the forwarder and add an inputs.conf $SPLUNK_HOME$/etc/apps/your_app/local/inputs.conf
[monitor:///var/log/my_app/oracle.log]
disabled = 0
index = oracle
sourcetype = your_sourcetype
$SPLUNK_HOME$/etc/apps/your_app/local/props.conf
$SPLUNK_HOME$/etc/apps/your_app/local/transforms.conf
props.conf
[your_sourcetype]
TRANSFORMS-set = setnull, setparsing
transforms.conf
# This sends all events to be ignored
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
# this says ignore all events, except the ones containing ERROR
[setparsing]
REGEX = Error|Warning|ORA-\d{0,5}|Critical
DEST_KEY = queue
FORMAT = indexQueue
[your_sourcetype1]
TRANSFORMS-set = setnull, setparsing
[your_souretype2]
TRANSFORMS-set = setnull, setparsing
Upvotes: 1