Getting Data In

Empty results from rest call in Report

felipetesta
Path Finder

Hello.
Running 6.6 (paid license) with LDAP authentication. I need to use my own email in a Report. I built a complex search that works, but once it is run as a Report the "| rest" call returns empty. So I tried to save a simpler search:

| rest /services/authentication/current-context | fields + email 

When I run it in the free search it returns my address. When I run the Report it returns no data.

Is there something that prevents rest calls in saved searches? Is it a problem with permissions? (but in the simplest test case I am using my own account).

Help.

Tags (2)
0 Karma
1 Solution

jplumsdaine22
Influencer

Could be some funky issue with reports. Have you tried just using this search on the dashboard to set a token?

View solution in original post

0 Karma

jplumsdaine22
Influencer

Could be some funky issue with reports. Have you tried just using this search on the dashboard to set a token?

0 Karma

felipetesta
Path Finder

Indeed, looks like an issue with reports. I inserted the full search query into a dashboard panel, gave it full visibility and it finally worked. I tested with three different users. Solved.

0 Karma

felipetesta
Path Finder

Additional info. The big plan is to allow any user to authenticate on Splunk and see a read-only dashboard with an analysis of her/his operations as found in indexed logs (such as Country of last access, incoming/outgoing email/antispam statistics, ...). I need to determine their email address automatically and I think there's no other way than the REST call to current-context.

0 Karma

clara-fication
Super Champion

i'm unaware of any permissions/capabilities that would cause this issue. i just ran a super simple search and saved as a report and it seems to work for me, however.
|makeresults|eval data="testdata"|appendcols [| rest /services/authentication/current-context |fields email]

who owns the report? the report (and therefore the rest) will run as the owner of the report, i believe.

Solution Clara-fied!
0 Karma

felipetesta
Path Finder

The search is owned by me. I modified as shown

  • Show to Owner: works for owner, others don't see it.
  • Shared to App, runs as Owner, All R&W: works for owner, others see it amongst Searches but shows no email.
  • Shared to App, run as User, All R&W: works for owner, others see it amongst Searches but shows no email.

It works in the last configuration if I login as "admin", and admin's email address is shown. But not for other logins.

As admin I tried to share the report to all Apps (Global), same behavior: for normal users the saved search returns nothing.

The "Inspect > Search log" for a working and a non-working case is the same.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

What You Read the Most in 2026: Splunk Lantern's Most Popular Articles, Top Themes, ...

Splunk Lantern is Splunk's customer success center that provides practical guidance from Splunk experts on key ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...

The Data Connection - November 2026

Machine data keeps growing, and every new source brings practical questions: where should it live, how ...