Hello Splunkers !!
I'm noticing an issue in Splunk. When I log in with the production manager role, the report figures are perfectly accurate. But when I access Splunk using a customer role, the values in the reports differ from what I see as a production manager. Any suggestions on how to troubleshoot or resolve this difference would be appreciated!
Correct values with the production manager role
wrong values with customer role
We don't know what powers those charts but the differences in results when a search is run as users with different roles usually boils down to:
1) Difference in index access permissions (remember that roles can also have search filters)
2) Difference in access to apps in which KOs are defined or even specific KOs.
Also some users have private KOs which can affect what is being extracted/calculated and so on. And sometimes the search behaves differently (has access to different KOs) depending on which app it's being run in.
So there are several possible points where the behaviour could differ.
I'd start with cutting the search to the very initial part (before first pipe) and comparing:
1) Number of results
2) Extracted fields.
@PickleRick I’m not using any knowledge objects in the panel search it’s a direct index search. After granting read access to the Search & Reporting app, the numbers started appearing correctly, consistent with other user roles.
index=json a type=Put data.workstationId=*
| spath source | search source=decan
| rename data.putCarrierPhysicalId as BinId, data.orderId as OrderId, data.putCarrierQuantity as qty, data.workstationId as workstation
| timechart span=1d@d1 sum(qty) as value by workstation
| addtotals
Well, a sourcetype can also be defined within an app to which access might differ between roles.
As a side remark - "data.workstationId=*" is a releatively performance-hungry condition. If you can narrow down your events by specifying the field name (simply adding "workstationId" on its own) as search term - do it. (of course if 95% of your events contain this field it won't help much but if it's just 10%, it will give you a significant savings on search time).
Hi @uagraw01
Its suspicious that the results are 4x different between them - I wouldnt expect this to be a capabilities issue but perhaps something else such as one user being able to search multiple indexes, or even a field extraction that one role has access to which another doesnt.
Are you able to confirm which numbers are correct?
Are you also able to share the search so we can see what might be the issue there? Please redact anything sensitive in the search if you're going to share it.
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
Hi @livehybrid
The numbers below are correct, which is Production_manager role.
One more thing to add ; while open the panel search in custome role I am getting oops message but in Production manger role panel is working fine and opens in anaother windows.
@isoutamo I have now given read access to search and reporting app to customer role and now figures are coming similar like production manager role.
@isoutamo Thanks for sharing this with me. I will try to accomodate in my environment.