Refine your search:

i am creating a Splunk app. How do i define only a particular index to be used by the app. Only a particular index must be accessed from the app. where do i define the configurations.

asked 26 Apr '12, 06:11

manikdham's gravatar image

manikdham
514
accept rate: 0%

in which file do i make the changes....

(26 Apr '12, 06:22) manikdham

2 Answers:

You can set this up by creating an index.conf in $SPLUNK_HOME/etc/apps/<your_app_name>/default and adding an index configuration there.

Brian

link

answered 26 Apr '12, 06:14

bosburn_splunk's gravatar image

bosburn_splunk
3.6k16
accept rate: 31%

In inputs.conf you'll define the index you want for all of your inputs. In indexex.conf you will define where the index is stored.

[yourindex] homePath = $SPLUNK_DB/yourindex/db coldPath = $SPLUNK_DB/yourindex/colddb thawedPath = $SPLUNK_DB/yourindex/thaweddb maxTotalDataSizeMB = 10000

Then in all of your app searches and reports they will reference your index (start with index=yourindex). There is no way to assign an index to an app that i am aware of similar to how you can assign indexes to roles.

link

answered 26 Apr '12, 06:44

sdaniels's gravatar image

sdaniels ♦
4.5k49
accept rate: 34%

i want to configure app such that i listens to data from particular index. Objective is to provide users accessing app access data from particular index. what is the other way i can do this.

(26 Apr '12, 07:02) manikdham

You can put in comments underneath the answers rather than creating a new answer. You create the app, which is only going to have views and dashboards on your index. Then you will create a user role that only has access to that index and give those users access to your app as well.

(26 Apr '12, 07:05) sdaniels ♦
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:

×502
×452
×293
×1

Asked: 26 Apr '12, 06:11

Seen: 1,387 times

Last updated: 11 Sep '12, 14:25

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