All Apps and Add-ons

Splunk App for Windows Infrastructure: inputlookup DomainSelector blank

rmills1
Explorer

I've just setup Splunk App for Windows Infrastructure v1.4.2 (on Splunk v6.5.6) with Active Directory shipping in logs. Most of it seems to be working fine, except for pages that have the Domain drop down box don't work. I just get the message, Search produced no results.

Looking at the search for that drop down box, the first part of the command is |ad-domains. When I run that I get nothing back.
When I look up ad-domains macro, it starts with inputlookup DomainSelector. When I run that, it returns no results.

I checked, and DomainSelector.csv in the lookups folder does contain the correct data. And running |inputlookup DomainSelector.csv works as expected, returning the contents of the csv.

If I do |inputlookup EventCodes it works fine. The main difference I can find is in transforms.conf

[DomainSelector]
external_type = kvstore
collection = DomainSelector_collection
fields_list = host, DomainNetBIOSName, DomainDNSName, ForestName, Site

[EventCodes]
filename=EventCodes.csv
max_matches=1

DomainSelector is a collection, while EventCodes is just a .csv. This is going beyond my limited knowledge, so I'm hoping for some help. How do I get the inputlookup command to work for DomainSelector?

Thanks

0 Karma
1 Solution

rmills1
Explorer

So I figured out my issue. I realized the kvstores were the problem. Once I learned a bit about kvstores, I checked file permissions and other stuff. Finally, I just ran the command

domain-selector-search|outputlookup DomainSelector

and discovered it worked. My kvstore was populated. So at that point I knew there was a permission issue. After more digging, I found out that you could view scheduled searches with

index=_internal sourcetype=scheduler | table _time user savedsearch_name status scheduled_time run_time result_count

That showed me that the jobs running to update my kvstores was running as the admin user. Sure enough, I didn't give the admin user the winfra-admin role, so it didn't have permissions to get the data in the first place. Once I did that, I waited for the jobs to run again, and everything was successful.

TL:DR - Make sure the admin user has the winfra-admin role.

View solution in original post

rmills1
Explorer

So I figured out my issue. I realized the kvstores were the problem. Once I learned a bit about kvstores, I checked file permissions and other stuff. Finally, I just ran the command

domain-selector-search|outputlookup DomainSelector

and discovered it worked. My kvstore was populated. So at that point I knew there was a permission issue. After more digging, I found out that you could view scheduled searches with

index=_internal sourcetype=scheduler | table _time user savedsearch_name status scheduled_time run_time result_count

That showed me that the jobs running to update my kvstores was running as the admin user. Sure enough, I didn't give the admin user the winfra-admin role, so it didn't have permissions to get the data in the first place. Once I did that, I waited for the jobs to run again, and everything was successful.

TL:DR - Make sure the admin user has the winfra-admin role.

davidjohnbecket
Path Finder

when you say "ran the command" what do you mean?

Im having the same issue...

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...