<?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: no of  events in show_source view in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94357#M182432</link>
    <description>&lt;P&gt;Version 5.0.1..&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jan 2013 10:23:47 GMT</pubDate>
    <dc:creator>smolcj</dc:creator>
    <dc:date>2013-01-22T10:23:47Z</dc:date>
    <item>
      <title>no of  events in show_source view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94355#M182430</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
the default number of events displayed in show source are 25,50,100,200,500,1000.&lt;BR /&gt;
Can i change it so that i can see all the events in my source file,there are nearly 7000 events in my source file. i tried changing the static options defined in Show_source view. but is of no change, can somebody help me. &lt;BR /&gt;
Please help&lt;BR /&gt;
Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 06:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94355#M182430</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-01-22T06:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: no of  events in show_source view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94356#M182431</link>
      <description>&lt;P&gt;What version of Splunk are you using?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 09:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94356#M182431</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-01-22T09:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: no of  events in show_source view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94357#M182432</link>
      <description>&lt;P&gt;Version 5.0.1..&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 10:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94357#M182432</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-01-22T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: no of  events in show_source view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94358#M182433</link>
      <description>&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="maxLinesConstraint" /&gt;7000&lt;BR /&gt;
when i am trying this option under showsource module i am getting a statement like&lt;BR /&gt;
Show source not available for this event..&lt;BR /&gt;
Any thoughts &lt;BR /&gt;
please help&lt;/OBJECT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 09:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94358#M182433</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-01-23T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: no of  events in show_source view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94359#M182434</link>
      <description>&lt;P&gt;Please help me to fix this,,&lt;BR /&gt;
i want to show my entire log through show source, but now i am able to show only last 1000 rows &lt;BR /&gt;
please help&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 11:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94359#M182434</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-02-12T11:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: no of  events in show_source view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94360#M182435</link>
      <description>&lt;P&gt;You can change the show_source view's XML,  so as to add higher row numbers like 10000, and in some cases such a change will result in 10,000 or more rows being displayed.  Technically it will display 10,000 rows before the selected event and 10,000 rows after,  for a total event count of 20,001.   &lt;/P&gt;

&lt;P&gt;However I do not think this is &lt;EM&gt;generally&lt;/EM&gt; possible for all distributions of events in time.  I can reproduce cases where it will indeed render 20,001 events.  However I can also find lots of cases where it gives up before reaching those numbers.      Above about 1000,  Show source will not necessarily go and get all the 10,000 rows that the user has asked for, because it may find the request difficult to fulfill and it may assume from that that there are no more events to get when in fact there are. &lt;/P&gt;

&lt;P&gt;Long version: Show source in the Splunk Search app is implemented using an obscure argument in the REST API, and one that is undocumented.   You can look into ShowSource.py,  or just read the splunkd_access log to see the requests that get made back to splunkd to fulfill show-source requests.   There is an "surrounding=1" argument that gets passed,  even though such an argument is not documented in the official rest api docs. &lt;/P&gt;

&lt;P&gt;/services/search/jobs/1360821045.803/events?latest_time=1338534000&amp;amp;max_lines=500&amp;amp;surrounding=1&amp;amp;count=10000&amp;amp;field_list=_raw%2Ctarget%2CMSG_TYPE%2CMSG_CONTENT%2C_decoration&amp;amp;offset=90&amp;amp;show_empty_fields=True&amp;amp;output_mode=json&amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&amp;amp;time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S%25z&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearch#search.2Fjobs.2F.7Bsearch_id.7D.2Fevents" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearch#search.2Fjobs.2F.7Bsearch_id.7D.2Fevents&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note the surrounding=1 argument in the splunkd_access log snippet posted above.  surrounding=1 tells the API that instead of getting the events for this search result,  it should go to offset=90 &lt;EM&gt;of&lt;/EM&gt; the current search result,  get that one event, get the 'source' and 'host' field values of that event,  and then do a separate search in the index for other events that have that source and host, that are nearby in time.    Starting from that point and going backward in time to get the events is a piece of cake for Splunk,  but starting from that point and going forward in a historical sense, is a bit harder.  And I think in this implementation if it finds itself struggling, it allows itself to give up before it's actually reached the 10,000 mark or whatever you've set for it.  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/no-of-events-in-show-source-view/m-p/94360#M182435</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T13:19:01Z</dc:date>
    </item>
  </channel>
</rss>

