Refine your search:

2
1

Suppose I have a search such as

sourcetype=apache errors

which finds errors that I care about. Now, suppose I want to send these errors, on certain conditions, so I want to use the alert_condition feature of savedsearches.conf. Let's say the condition I want to use is that it is not working hours -- totally unrelated to the original search. However, alert_condition is fed the event stream from the original search.

How can I efficiently dump the original stream, when needed?

The best I can come up with is

alert_condition = head 1 | where 1=2 | append [search ....]

Can this be done more neatly?

asked 09 Feb '11, 20:24

jrodman's gravatar image

jrodman ♦
5.8k2515
accept rate: 42%

edited 29 Apr '11, 10:36

jlaw's gravatar image

jlaw ♦
20113


One Answer:

Apparently the 'best I could come up with' is the best we have.

That should be efficient, it's just a little ugly to read.

link

answered 16 Feb '11, 19:18

jrodman's gravatar image

jrodman ♦
5.8k2515
accept rate: 42%

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:

×1,083
×172
×21

Asked: 09 Feb '11, 20:24

Seen: 712 times

Last updated: 29 Apr '11, 10:36

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