Refine your search:

I just want esrs user see only esrs index,but it has no data if i command the srchfilter out. the user see all indexes. thanks

this is my authorize.conf

role_esrs
rtsearch = enable
srchFilter = host=host*
importRoles = user
rtSrchJobsQuota = 0
srchDiskQuota = 0
srchIndexesAllowed = index
srchIndexesDefault = index
srchJobsQuota = 0

asked 19 Sep '11, 12:44

duongl2's gravatar image

duongl2
2114
accept rate: 0%

edited 07 Oct '11, 12:35

i use srchFilter = index=esrs. it is ok. but i am not sure that is correct. because the user can't see others indexes. How is about the dashboard and view. The user still see all sources and hosts.

(19 Sep '11, 13:53) duongl2

2 Answers:

I think your issue here is that you are also importing the user role. And that role allows users to search all non internal indexes by default. Try removing that role from the inhereted list, then tweak the esrs role. You shouldn't have to use any search restrictions to achieve this.

link

answered 20 Sep '11, 10:16

Joetron's gravatar image

Joetron
1.9k1212
accept rate: 25%

if i remove user role, i got an error when login Internal Server Error

AuthorizationFailed: [HTTP 403] Client is not authorized to perform requested action; https://127.0.0.1:8089/servicesNS/test/search/properties/app?fillcontents=1

(20 Sep '11, 12:36) duongl2

Yeah, that's because the user role has the REST_Properties Capabilities to allow the users to access it via web. An easier approach would be to just remove the all of the indexes in selected search indexes in the user role, then just specify what indexes the other roles can search. Or you could add the REST capabilities to the esrs role.

(20 Sep '11, 14:29) Joetron

That worked for me! Thank you, Joetron

link

answered 07 Oct '11, 11:38

nurtdi's gravatar image

nurtdi
113
accept rate: 50%

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:

×82

Asked: 19 Sep '11, 12:44

Seen: 910 times

Last updated: 07 Oct '11, 12:35

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