<?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: i can see only splunk example queries and no example output results. is there a document whcih have both exmple queires and the sample outputs. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456978#M78960</link>
    <description>&lt;P&gt;@gannysplunk for the abstract command you can definitely try the run anywhere search example based on Splunk's _internal index. If it works do accept/up vote the answer to mark this question as answered!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 15:13:40 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-07-25T15:13:40Z</dc:date>
    <item>
      <title>i can see only splunk example queries and no example output results. is there a document whcih have both exmple queires and the sample outputs.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456975#M78957</link>
      <description>&lt;P&gt;i can see only splunk example queries and no example output results. is there a document whcih have both exmple queires and the sample outputs. so it will easy easy to understand by seeing the output samples also.&lt;/P&gt;

&lt;P&gt;the below is a example for abstract, but no output results provided&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Abstract"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Abstract&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 02:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456975#M78957</guid>
      <dc:creator>gannysplunk</dc:creator>
      <dc:date>2018-07-25T02:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: i can see only splunk example queries and no example output results. is there a document whcih have both exmple queires and the sample outputs.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456976#M78958</link>
      <description>&lt;P&gt;@gannysplunk, Splunk Docs provides Example queries with an expectation that you will be providing the main/base search depending on the data that you have indexed which may vary for different Splunk instances.&lt;/P&gt;

&lt;P&gt;If you are trying to pick up on Splunk Processing Langugage (Splunk Searching) you can refer to &lt;BR /&gt;
&lt;STRONG&gt;1)&lt;/STRONG&gt; Splunk Documentation for &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial"&gt;Search Tutorial&lt;/A&gt;, which lists out step by step process of adding some sample mock data to Splunk and then creating Splunk Search to analyze data and finally creating Alert/Report/Dashboard depending on the needs.&lt;BR /&gt;
&lt;STRONG&gt;2)&lt;/STRONG&gt; You can attend free e-learning course from Splunk called &lt;A href="https://www.splunk.com/en_us/training/courses/splunk-fundamentals-1.html"&gt;Splunk Fundamentals 1&lt;/A&gt; which should clear the same process as above with video based e-learning course.&lt;BR /&gt;
&lt;STRONG&gt;3)&lt;/STRONG&gt; For specific query with any SPL, which does not seem clearly explained through the Splunk Documentation, you can search on &lt;CODE&gt;Splunk Answers&lt;/CODE&gt; as well. &lt;STRONG&gt;Most of the time the community members provide run anywhere examples&lt;/STRONG&gt; based on Splunk's _internal index (which Splunk uses to monitor itself). For example here is one of my older post on abstract command usage: &lt;A href="https://answers.splunk.com/answers/628510/help-to-build-the-query-using-abstract-command.html"&gt;https://answers.splunk.com/answers/628510/help-to-build-the-query-using-abstract-command.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As per your question around the &lt;A href="https://answers.splunk.com/answers/628510/help-to-build-the-query-using-abstract-command.html"&gt;abstract&lt;/A&gt; command which returns summary of _raw data instead of complete event data based on maxlines and maxterms. PS: I have also used &lt;CODE&gt;maxterm&lt;/CODE&gt; argument for abstract command because most of the time _internal logs are single line.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd log_level!=INFO
| abstract maxlines=1 maxterms=20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Provided you have the access to search &lt;CODE&gt;_internal&lt;/CODE&gt; index, the above is a run anywhere example which should give some output. In order to see the difference in _raw Events in the output you can try the same base search without second pipe with abstract i.e. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd log_level!=INFO
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm if you need further help!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 08:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456976#M78958</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-25T08:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: i can see only splunk example queries and no example output results. is there a document whcih have both exmple queires and the sample outputs.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456977#M78959</link>
      <description>&lt;P&gt;@niketnilay thanks for answering me. will check with mock data and work with that to practice the queries.&lt;BR /&gt;
i &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 13:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456977#M78959</guid>
      <dc:creator>gannysplunk</dc:creator>
      <dc:date>2018-07-25T13:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: i can see only splunk example queries and no example output results. is there a document whcih have both exmple queires and the sample outputs.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456978#M78960</link>
      <description>&lt;P&gt;@gannysplunk for the abstract command you can definitely try the run anywhere search example based on Splunk's _internal index. If it works do accept/up vote the answer to mark this question as answered!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 15:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/i-can-see-only-splunk-example-queries-and-no-example-output/m-p/456978#M78960</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-25T15:13:40Z</dc:date>
    </item>
  </channel>
</rss>

