<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk API Output Fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-Output-Fields/m-p/463059#M79937</link>
    <description>&lt;P&gt;Some More Details:&lt;/P&gt;

&lt;P&gt;When I am outputting the search from Splunk UI I am getting following fields:&lt;/P&gt;

&lt;P&gt;_raw,_time,&lt;BR /&gt;
app,appId,&lt;BR /&gt;
correlationId,&lt;BR /&gt;
eventtype,&lt;BR /&gt;
host,&lt;BR /&gt;
index,&lt;BR /&gt;
items.&lt;BR /&gt;
access_type,&lt;BR /&gt;
items.article_id,&lt;BR /&gt;
items.data.fed_id,&lt;BR /&gt;
items.eventType,&lt;BR /&gt;
items.fed_id,&lt;BR /&gt;
items.institution_id,&lt;BR /&gt;
items.journal_id,&lt;BR /&gt;
items.logLevel,&lt;BR /&gt;
items.referer_url,&lt;BR /&gt;
items.request_date,&lt;BR /&gt;
items.request_method,&lt;BR /&gt;
items.resource_type,&lt;BR /&gt;
items.session_id,&lt;BR /&gt;
items.status_code,&lt;BR /&gt;
items.time,&lt;BR /&gt;
items.url,&lt;BR /&gt;
items.userIp,&lt;BR /&gt;
items.user_agent,&lt;BR /&gt;
items.user_id,&lt;BR /&gt;
items.user_name,&lt;BR /&gt;
level,&lt;BR /&gt;
linecount,&lt;BR /&gt;
message,&lt;BR /&gt;
product,&lt;BR /&gt;
punct,&lt;BR /&gt;
source,&lt;BR /&gt;
sourcetype,&lt;BR /&gt;
splunk_server,&lt;BR /&gt;
splunk_server_group,&lt;BR /&gt;
tag,tag::eventtype,vendor&lt;/P&gt;

&lt;P&gt;What I am getting output of Splunk API the structure includes only a subset of fields which is:&lt;/P&gt;

&lt;P&gt;_serial&lt;BR /&gt;
_time&lt;BR /&gt;
source&lt;BR /&gt;
sourcetype&lt;BR /&gt;
host&lt;BR /&gt;
index&lt;BR /&gt;
splunk_server&lt;BR /&gt;
_raw&lt;/P&gt;

&lt;P&gt;I would greatly appreciate how to mimic the Splunk UI output with Splunk API. Your help would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:48:55 GMT</pubDate>
    <dc:creator>zqureshi</dc:creator>
    <dc:date>2020-09-30T04:48:55Z</dc:date>
    <item>
      <title>Splunk API Output Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-Output-Fields/m-p/463058#M79936</link>
      <description>&lt;P&gt;Hello All, when I am using the Splunk API I am getting different fields as compared to the Splunk UI. How can we get similar results (fields)  as we are able to get from Splunk UI. I have tried the "rf" attribute also but no luck.&lt;/P&gt;

&lt;P&gt;This is the call:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u u:p &lt;A href="https://splunk:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://splunk:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; --data-urlencode search="search index=node message="j-report" appId=\"static--logger\" items.data.f_id != \"\" OR items.inst_id!= \"\" earliest=03/30/2020:0:0:0 latest=03/31/2020:0:0:0" -d rf=* -d output_mode=csv -o test.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Apr 2020 02:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-Output-Fields/m-p/463058#M79936</guid>
      <dc:creator>zqureshi</dc:creator>
      <dc:date>2020-04-02T02:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API Output Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-Output-Fields/m-p/463059#M79937</link>
      <description>&lt;P&gt;Some More Details:&lt;/P&gt;

&lt;P&gt;When I am outputting the search from Splunk UI I am getting following fields:&lt;/P&gt;

&lt;P&gt;_raw,_time,&lt;BR /&gt;
app,appId,&lt;BR /&gt;
correlationId,&lt;BR /&gt;
eventtype,&lt;BR /&gt;
host,&lt;BR /&gt;
index,&lt;BR /&gt;
items.&lt;BR /&gt;
access_type,&lt;BR /&gt;
items.article_id,&lt;BR /&gt;
items.data.fed_id,&lt;BR /&gt;
items.eventType,&lt;BR /&gt;
items.fed_id,&lt;BR /&gt;
items.institution_id,&lt;BR /&gt;
items.journal_id,&lt;BR /&gt;
items.logLevel,&lt;BR /&gt;
items.referer_url,&lt;BR /&gt;
items.request_date,&lt;BR /&gt;
items.request_method,&lt;BR /&gt;
items.resource_type,&lt;BR /&gt;
items.session_id,&lt;BR /&gt;
items.status_code,&lt;BR /&gt;
items.time,&lt;BR /&gt;
items.url,&lt;BR /&gt;
items.userIp,&lt;BR /&gt;
items.user_agent,&lt;BR /&gt;
items.user_id,&lt;BR /&gt;
items.user_name,&lt;BR /&gt;
level,&lt;BR /&gt;
linecount,&lt;BR /&gt;
message,&lt;BR /&gt;
product,&lt;BR /&gt;
punct,&lt;BR /&gt;
source,&lt;BR /&gt;
sourcetype,&lt;BR /&gt;
splunk_server,&lt;BR /&gt;
splunk_server_group,&lt;BR /&gt;
tag,tag::eventtype,vendor&lt;/P&gt;

&lt;P&gt;What I am getting output of Splunk API the structure includes only a subset of fields which is:&lt;/P&gt;

&lt;P&gt;_serial&lt;BR /&gt;
_time&lt;BR /&gt;
source&lt;BR /&gt;
sourcetype&lt;BR /&gt;
host&lt;BR /&gt;
index&lt;BR /&gt;
splunk_server&lt;BR /&gt;
_raw&lt;/P&gt;

&lt;P&gt;I would greatly appreciate how to mimic the Splunk UI output with Splunk API. Your help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-Output-Fields/m-p/463059#M79937</guid>
      <dc:creator>zqureshi</dc:creator>
      <dc:date>2020-09-30T04:48:55Z</dc:date>
    </item>
  </channel>
</rss>

