Refine your search:

Hi,

I am running the following saved search every 10 minutes which will send an email if *xception is found in the filenetlistener.log file. The email contains the alert along with a csv file which outlines the number of severities.

host=itp-srv-03 index=app sourcetype=filenetlistener source="D:\EAI\axis-jms\logs\listener.log" | search *xception | stats count | rangemap field=count low=0-0 default=severe

Do you know is it possible for Splunk to include in the email the listener log file or an extract of the listener log showing the exception?

Thanks in advance.

asked 29 May '12, 07:51

itsomana's gravatar image

itsomana
2291110
accept rate: 0%


One Answer:

I would suggest this search instead

host=itp-srv-03 index=app sourcetype=filenetlistener source="D:\EAI\axis-jms\logs\listener.log" *xception

In your alert, set the condition to "if number of events is greater than 0" and select the option to include the results in the email. Splunk will include all the matching events as part of the alert.

BTW, Splunk search is case-insensitive, so if you are searching for "Exception" or "exception" you can simply write it as

host=itp-srv-03 index=app sourcetype=filenetlistener source="D:\EAI\axis-jms\logs\listener.log" exception

and Splunk will find it regardless of capitalization.

link

answered 29 May '12, 11:25

lguinn's gravatar image

lguinn ♦
11.0k5723
accept rate: 28%

Many thanks for you reply. I am not sure if this will work for me as I need the stats count so I can display the saved search on the dashboard. This is green when when zero events of *xception are not found.

I already have set the condition set to alert if the number of events is greater than zero. When one event is found this turns the dashboard to red.

(30 May '12, 07:25) itsomana
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:

×97

Asked: 29 May '12, 07:51

Seen: 770 times

Last updated: 30 May '12, 07:25

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