Refine your search:

Hi there,

What I am after is quite straight forward really. I am trying to conduct a search of a particular index (prod_apache) and display any "File does not exist" errors.

This is very easy to accomplish (obviously)... however, I don't want to display the same file over and over again and would just like to display a list of which files don't exist.

Being that this seems like quite a straight forward thing to do (at least in my eyes) I was wondering if anyone knows how I would go about doing it.

Thanks, Aaron.

asked 25 Aug '10, 05:09

aaronnicoli's gravatar image

aaronnicoli
11718
accept rate: 16%


One Answer:
index=prod_apache "File does not exist" | dedup file_name

Assuming you've got file_name extracted as a field containing the file name. Or:

index=prod_apache "File does not exist" | stats count by file_name

for a count of how many errors per file.

link

answered 25 Aug '10, 05:23

gkanapathy's gravatar image

gkanapathy ♦
32.4k4827
accept rate: 41%

Thanks again for your help. After I configured the extraction, it worked perfectly.

(25 Aug '10, 22:46) aaronnicoli
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:

×167
×24

Asked: 25 Aug '10, 05:09

Seen: 899 times

Last updated: 25 Aug '10, 05:23

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