Refine your search:

I am using this stanza to monitor Linux directory

[monitor:///opt/nessus/var/nessus/users/*/reports/] disabled = 0 followTail = 0 crcSalt = <source> whitelist = .nessus$ ignoreOlderThan = 30d index = nessus sourcetype = nessus

I get this error in the splunkd.log file on the U.F.

'02-22-2012 12:54:31.053 -0600 ERROR TailingProcessor - matching /opt/nessus/var/nessus/users/mikeh/reports/ against ^/opt/nessus/var/nessus/users/[^/]*/reports/$'

I also get the same error on other folders in the users directory. I have tried using the standard stanza like this, [monitor:///opt/nessus/var/nessus/users/.../reports/] but i get the same error messages

I had thought it was due to permissions but I fixed that problem.

Anyone know why I am getting errors on all the folders including the one I want to monitor?

asked 22 Feb, 11:05

hartfoml's gravatar image

hartfoml
10016
accept rate: 31%

1

[monitor:///opt/nessus/var/nessus/users/.../reports/]
is the proper syntax.

(22 Feb, 17:11) lguinn ♦

2 Answers:

If the full path is /opt/nessus/var/nessus/users/username/reports/report_name.nessus Then it should be [monitor:///opt/nessus/var/nessus/users/*/reports] The * is for single directory depth where ... is one or more directories. So remove your trailing slash.

link

answered 22 Feb, 20:01

jgedeon120's gravatar image

jgedeon120
1135
accept rate: 16%

you might be right. I tried just commenting out the whitelist item the 'whitelist = *.nessus' it looks like this worked so I think the problem may be in the combo or the final directory name and the whitelist format

(23 Feb, 06:05) hartfoml

sorry 'whitelist = *\.nessus'

(23 Feb, 06:05) hartfoml
1

should be

whitelist=.*\.nessus$

if you want to match only pathnames that end in .nessus

(23 Feb, 11:08) lguinn ♦

whitelist = *.nessus$

link

answered 24 Feb, 02:42

jgedeon120's gravatar image

jgedeon120
1135
accept rate: 16%

edited 24 Feb, 09:10

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:

×103

Asked: 22 Feb, 11:05

Seen: 223 times

Last updated: 24 Feb, 09:10

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