Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9101795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:13:22+00:00 2026-06-17T01:13:22+00:00

Having trouble querying Splunk API for a set of events by day. My goal

  • 0

Having trouble querying Splunk API for a set of events by day. My goal is to return JSON with seven days of event counts (impressions and uniques) for a set of server logs. The search is as follows:

index=assets_index gid=30 | timechart count(clientip) AS Impressions dc(clientip) AS Uniques

When I run this search, and get the results in terminal:

curl -u admin:ourpass -k https://ourserver.com:8089/services/search/jobs -d"search=search index=assets_index gid=30 | timechart count(clientip) AS Impressions dc(clientip) AS Uniques"
curl -u admin:ourpass \
     -k https://ourserver.com:8089/services/search/jobs/1357597855.2304/results/ \
     --get -d output_mode=json

I get the raw events from the search and not the results (running this in the Web search App returns the results I want). I’m sure there’s an easy way to request results that gets this to work, but I can’t find it. Help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:13:23+00:00Added an answer on June 17, 2026 at 1:13 am

    You are very close … just the way you are passing parameters is wrong. Each request parameter should be passed individually with the -d flag AND the parameter values need to be URL-encoded. Try this and see if it works right for you:

    curl -u admin:ourpass -k https://ourserver.com:8089/services/search/jobs -d search="search index%3Dassets_index gid%3D30 | timechart count(clientip) AS Impressions dc(clientip) AS Uniques“

    Not sure what language is your webapp in, Splunk also has SDKs in multiple languages. It might be easier to go through the SDKs and let them handle talking to Splunk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having trouble with a query to return the newest order of any grouped set
I seem to be having trouble querying my 'events' table which contains foreign keys.
I'm having some trouble parsing malformed XML in PHP. In particular I'm querying a
I'm using Doctrine ODM and am having trouble querying embedded documents by a referenced
I am having trouble querying MySQL. I want to actually get the count of
I've been having trouble querying a web server for information from my Windows Phone
I'm having trouble querying for supported languages using the SpeechRecognizer.ACTION_GET_SUPPORTED_LANGUAGES. private void queryLanguages() {
I'm having trouble querying my SQLite database using Android. I keep getting either an
I'm having some trouble querying dynamic properties in Raven. Here are my classes: public
I'm having trouble with an SQL query. The problem is that I'm querying an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.