Refine your search:

I have created several indexs based on the Flavour of UNIX like linux, solaris, sco-unix, esx.

Now I want to use these indexes in *NIX app.

But presently I can not make use of the *NIX app, as its checking for data in the index "os".

Can someone guide me how to configure *NIX app to use multiple indexes or atleast 1 index instead of the default "os".

asked 15 Jul '10, 06:24

klkumar10's gravatar image

klkumar10
257
accept rate: 0%

edited 26 Jul '10, 22:13

Justin%20Grant's gravatar image

Justin Grant
1.4k4531


2 Answers:

To change the way the *NIX app indexes its inputs

Make a copy of inputs.conf in the local directory for the *NIX app. You may need to create the directory first.

cp $SPLUNK_HOME/etc/apps/unix/default/inputs.conf $SPLUNK_HOME/etc/apps/unix/local/

Edit the copy of inputs.conf in the local directory as follows:

  1. For each stanza, remove all the lines EXCEPT index = os and disabled
  2. Change index = os to index = main (or any existing index of your choice)
  3. Make sure that disabled is set to false (or zero)

Example:

[monitor:///var/log]
_whitelist=(\.log|log$|messages$|mesg$|cron$|acpid$|\.out)
_blacklist=(lastlog)
index=os
disabled = 1

Would become

[monitor:///var/log]
index=main
disabled = false

You can also do this via the Splunk Manager GUI

Change the *NIX eventtypes and saved searches

There are a number of eventtypes and saved searches that are provided with the *NIX app. Some of them contain "index=os" as part of their search. You can simply remove this term from the search, and Splunk will search all indexes that are visible to the user. You can do this via the Splunk Manager GUI.

It is probably better to use the "clone" mechanism to create a custom version of each of the redefined eventtypes, so that your changes are not overwritten by subsequent Splunk releases.

link

answered 15 Jul '10, 07:28

lguinn's gravatar image

lguinn ♦
1.6k111
accept rate: 25%

well, I don't think the problem is the inputs, but the pre-created reports. I have the same issue with the Windows application, I'd like to have it in a different index, but all the other files for the app need to be changed as well (not the inputs, but the files for the UI, saved searches etc.)

link

answered 23 Nov '10, 18:08

mikelanghorst's gravatar image

mikelanghorst
72417
accept rate: 30%

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:

×650
×259

Asked: 15 Jul '10, 06:24

Seen: 1,392 times

Last updated: 23 Nov '10, 18:08

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