Hi there,
The situation is as follows. We've a scheduled search running which is doing LDAP query on Active directory and putting all computer objects into one lookup file. The lookup file is being used by Enterprise security asset and identy managment.
We desire to put in priority for these assets. Now when we do this manually, via lookup editor, next time the scheduled search runs the priority is overwritten again with "nothing"
Therefore we created a different csv file with only the prioritized assets in (And contained the same headers as in the "master" file). We would like to overwrite the "master" lookup file from asset&Identy management with the content of that new "prio" csv. After the schedule has run. How can you we achieve that?
Thanks in advance
Erik
Eh, there is still no solution yet.. The LDAP search doesn't contain the prio list yet..
As @richgalloway says, you would need to consult the lookup file that you have [ with priority assets], before finalizing them for asset/identity.
Alternatively, as you know the assets that are critical/high/medium/low priority for you, you can do also something like
|ldapsearch ..... <your search to extract fields> | <format/change to the fields required by asset> | eval priority = < apply your logic to add priority for each asset or default to low> | outputlookup <your_org_assets.csv>
However, if you have 2 lookup files - i.e. one is the output of the ldapsearch and other is your list with priority, you could try to merge them using [ appears to be new, i haven't tried, but should work ]- https://docs.splunk.com/Documentation/ES/6.3.0/Admin/Overwritewithentitymerge
Thanks, even better to do it beforehand. This is the LDAP search
| ldapsearch domain=blabla search="(&(objectClass=computer))" | rename dNSHostName as dns, name as nt_host, operatingSystem as category
| table nt_host,dns,category
Thanks, even better to do it beforehand. This is the LDAP search
| ldapsearch domain=blabla search="(&(objectClass=computer))" | rename dNSHostName as dns, name as nt_host, operatingSystem as category
| table nt_host,dns,category
Modify your LDAP scheduled search to consult the "prio" CSV before writing to the assets lookup file. Share your current LDAP search for help with the specifics.
Eh, there is still no solution yet.. The LDAP search doesn't contain the prio list yet..
I've provided the LDAP search..