- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mohankesireddy
Path Finder
03-05-2015
10:27 AM
"inputlookup" command works fine when I use in Splunk UI, but same search comes back with no results when I search through REST API:
curl -w "@curl-format.txt" -s -k -u admin:changes https://localhost:8089/servicesNS/admin/search/search/jobs -d search="| inputlookup lookupdefinition” -d output_mode=json
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mohankesireddy
Path Finder
03-10-2015
02:21 PM
found the issue, its not the issue with REST API but permissions. the lookup permissions are constrained to an app context and the REST search using a different app context.
# curl -ku user:support https://localhost:8089/servicesNS/admin/search/search/jobs/export -d search="| inputlookup ip2internalhostname" -d output_mode=json
{"preview":false,"offset":0,"lastrow":true,"result":{"hostname":"big","src":"0.0.0.0"}}
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mohankesireddy
Path Finder
03-10-2015
02:21 PM
found the issue, its not the issue with REST API but permissions. the lookup permissions are constrained to an app context and the REST search using a different app context.
# curl -ku user:support https://localhost:8089/servicesNS/admin/search/search/jobs/export -d search="| inputlookup ip2internalhostname" -d output_mode=json
{"preview":false,"offset":0,"lastrow":true,"result":{"hostname":"big","src":"0.0.0.0"}}
