Refine your search:

I'm trying to index a bunch of plugin files such that each file is a single event. I've tried almost every combination of the following options without success. Splunk still treats every line as a separate event. I'm running the latest 4.2.3 build. I feel like this was working eight months ago when last I played with it, but it seems to be broken now.

[nessus_plugins]
TRUNCATE = 0
SHOULD_LINEMERGE = false
BREAK_ONLY_BEFORE = ABCDEFGHIJKLMNOP1234567890
LINE_BREAKER = (?!)

I'm noticing that events indexed last year are working, but newly indexed events are not being broken properly.

The files are XML formatted. I remember reading that there were some changes to how XML inputs are indexed in some of the later versions. Thanks.

asked 17 Jan '12, 14:09

mundus's gravatar image

mundus
717
accept rate: 0%

edited 17 Jan '12, 14:35


4 Answers:

What happens if you change this to the following:

SHOULD_LINEMERGE = True

You will probably have to decide between BREAK_ONLY_BEFORE or LINE_BREAKER but not both.

link

answered 17 Jan '12, 14:26

tgow's gravatar image

tgow
1.1k4317
accept rate: 17%

Nope. That didn't work.

(17 Jan '12, 14:40) mundus

Any way that you could post some of the data? Can you clean it up if there is anything company specific in it? Just post a couple of events.

link

answered 17 Jan '12, 14:42

tgow's gravatar image

tgow
1.1k4317
accept rate: 17%

Sure. They're standard Nessus 4 NASL scripts. Here's a snippet:

if (!defined_func("bn_random")) exit(0);

include("compat.inc");

if (description) { script_id(20614); script_version("$Revision: 1.9 $"); script_cvs_date("$Date: 2011/10/21 11:16:48 $");

script_cve_id("CVE-2004-0889"); script_xref(name:"USN", value:"2-1");

script_name(english:"USN-2-1 : xpdf vulnerabilities"); script_summary(english:"Checks dpkg output for updated package(s)");

script_set_attribute(attribute:"synopsis", value:

(17 Jan '12, 14:46) mundus

I notice that all the plugins get overwritten each time they are updated. Maybe there's something I need to tweak in inputs.conf...?

(17 Jan '12, 14:47) mundus

Not sure if this is the correct answer or not...

I added the following to the stanza for the input:

crcSalt = <source>

I deleted the main index and the fishbucket and it looks like it is obeying the line breaking as expected.

link

answered 17 Jan '12, 15:01

mundus's gravatar image

mundus
717
accept rate: 0%

Excellent glad you figured your own problem out.

link

answered 17 Jan '12, 15:24

tgow's gravatar image

tgow
1.1k4317
accept rate: 17%

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:

×57

Asked: 17 Jan '12, 14:09

Seen: 595 times

Last updated: 17 Jan '12, 15:24

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