Splunk Search

How to make a GET request and fetch SID?


Hi I am new to Splunk,

I have created an Angular service that makes a get request to Splunk, I have a search and I want to return the Sid.

I tried this with postman- but it was returning a lot of JSON data.

How do I return the Sid?

Any help would be greatly appreciated.


public _url: string = `https://digitalsplunk.secretlink.com:8089/services/search/jobs`
  search_query = JSON.stringify(`search index=mainframe task_name=P3MRBI1 | table _time, ebg_method_name`)

    header = {
    headers: new HttpHeaders().set(
      "Basic " + btoa("user:pass")

  constructor(public http: HttpClient) {}
  get_side() {
    this.http.get(this._url + this.search_query, this.header).subscribe(response => console.log('response ', response), err => console.log('error is ', err));
0 Karma
Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...