<?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: Why am I getting inconsistent search results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248595#M74225</link>
    <description>&lt;P&gt;+1 for the Syslog note.&lt;BR /&gt;
Let me try the line break and see if that is the cause.&lt;/P&gt;

&lt;P&gt;I have created a custom source_type and set the event break regex there.  I hope that's the same as BREAK_ONLY_BEFORE.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:33:39 GMT</pubDate>
    <dc:creator>cmisztur</dc:creator>
    <dc:date>2020-09-29T08:33:39Z</dc:date>
    <item>
      <title>Why am I getting inconsistent search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248592#M74222</link>
      <description>&lt;P&gt;I have configured Kepware IDF for Splunk and am ingesting data over TCP:51112.  The source_type I have set ('opc') is arbitrary and does not exist.  I have noticed when executing below search, the results are incorrect.  The two records for "RunState" get omitted from the below search, and I am assuming that is because that collection of events contains an entry with Quality="bad", which does not meet my criteria.&lt;/P&gt;

&lt;P&gt;Am I missing something fundamental, like not creating or setting a source_type?&lt;/P&gt;

&lt;P&gt;WorkCenter="CNF59" | search RunState Quality="good"&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/997i4B1C196E6CC7693C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 22:29:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248592#M74222</guid>
      <dc:creator>cmisztur</dc:creator>
      <dc:date>2016-01-26T22:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting inconsistent search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248593#M74223</link>
      <description>&lt;P&gt;I think your line breaking isn't right.  &lt;/P&gt;

&lt;P&gt;That whole thing looks like one event, and as one event it has both Quality="good" AND Quality="bad" in it.  So, searching for Quality="good" brings up that entire event.&lt;/P&gt;

&lt;P&gt;There are a variety of ways to fix this, possibly easiest may be - if it works - to change your &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Admin/Propsconf"&gt;props.conf&lt;/A&gt; for that sourcetype to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_custom_sourcetype]
BREAK_ONLY_BEFORE = ^\d{4}-\d{2}-\d{2}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are quite a few &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Data/Indexmulti-lineevents"&gt;other options&lt;/A&gt;.  Personally, I think this issue could be caused because you are directly ingesting events over the network, and the source it sending them oddly.  I'm pertty sure all the default line-breaking and timestamping would take care of this if you were &lt;A href="http://www.georgestarcher.com/splunk-success-with-syslog/"&gt;ingesting them with syslog to a file&lt;/A&gt;, then reading those files off disk and into Splunk.  (This method has a LOT of other advantages, too!).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 02:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248593#M74223</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-01-27T02:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting inconsistent search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248594#M74224</link>
      <description>&lt;P&gt;It looks like you need to tune the line breaking of these events as in your example Splunk is merging 4 log events into a separate Splunk events (check out props.conf).  Once you have line breaking setup properly your searches should work as currently Splunk is trying to extract 4 values for this event and only one of them is winning.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 02:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248594#M74224</guid>
      <dc:creator>kbecker</dc:creator>
      <dc:date>2016-01-27T02:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting inconsistent search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248595#M74225</link>
      <description>&lt;P&gt;+1 for the Syslog note.&lt;BR /&gt;
Let me try the line break and see if that is the cause.&lt;/P&gt;

&lt;P&gt;I have created a custom source_type and set the event break regex there.  I hope that's the same as BREAK_ONLY_BEFORE.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:33:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-inconsistent-search-results/m-p/248595#M74225</guid>
      <dc:creator>cmisztur</dc:creator>
      <dc:date>2020-09-29T08:33:39Z</dc:date>
    </item>
  </channel>
</rss>

