Hi
try this
index=_internal | rex "\/app\/(?<myApp>\w+)\/(?<myView>\w+)\"" | stats values(myView) AS myViews by user
thanks for you help,that should be good.I will be try!
One option could be to create 3 roles for your 3 user types. In your app, create three views, one for each user type and then set the sharing permission of each view to grant Read permission to specific role only. The limitation of this approach is that you can't set these views as default view for user. This works fine if they are present in the navigation menu.
As Martin Müller said ...
You can use Javascript to find out which user/role a user have and you can manage your views/content depending on that user :
http://answers.splunk.com/answers/91302/getting-user-role-in-javascript
There are several mechanisms to control the content depending on user/roles ...
eg. (http)redirect to (static)views, change (some) content within a view using JQuery, using Ajax to load entire content in panels, ...
Sure. Create a role for each type of user, then create three different apps and set them as the defaults for the respective user role. Then you're free to customize each app for each user type.
The Webframework doc is here: http://dev.splunk.com/view/web-framework/SP-CAAAER6
Yes,but i was not found the doc of SplunkJS/Webframework
You could build one default view for everyone, and use SplunkJS/Webframework code or SideviewUtils' Multiplexer module to show/hide parts of the view depending on the current user's role.
No, you can't set different views as default for different users within an app.
Dear friend:
This is not what i want, i mean just have one app, not more.
but thanks your answer!