<?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: Extract not giving the exact result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236369#M70219</link>
    <description>&lt;P&gt;What you are describing is exactly correct behavior.   There is a "null" field because inside your data are events like this (or similar):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO [http-8080-Processor22] 09-15 15:22:40 RemoteSystemId is Null
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As far as the &lt;CODE&gt;RemoteSystemIDNullException&lt;/CODE&gt; (always) showing zero; this also likely not the case.  I can believe that is is mostly showing zero but not always.  Try this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=abc sourcetype=xyz | rex "RemoteSystemId is (?&amp;lt;remotesystemid&amp;gt;\S+)" | stats last(_raw) AS raw count by remotesystemid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See what I mean?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2015 14:48:38 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-09-23T14:48:38Z</dc:date>
    <item>
      <title>Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236341#M70191</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an extract with the name "remotesystemid" but when i am executing the below query it is giving values with null column.&lt;/P&gt;

&lt;P&gt;index=abc sourcetype=xyz | timechart count by remotesystemid&lt;/P&gt;

&lt;P&gt;If i am using ( | stats values(*) as * by remotesystemid ) with the above given command to exclude null value then it is giving no result found.&lt;/P&gt;

&lt;P&gt;Kindly suggest where i am wrong?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236341#M70191</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T07:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236342#M70192</link>
      <description>&lt;P&gt;It would seem Splunk is not finding your remotesystemid field.  What does your data look like?  Have you tried &lt;CODE&gt;index=abc sourcetype=xyz | table remotesystemid&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236342#M70192</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-09-21T11:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236343#M70193</link>
      <description>&lt;P&gt;thanks for the reply.. yes i have tried the same but it is giving "no result found".. Do you have any idea what to do in this case? thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236343#M70193</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T11:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236344#M70194</link>
      <description>&lt;P&gt;Post a sample of your data so we can help you extract the remotesystemid field.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236344#M70194</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-09-21T11:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236345#M70195</link>
      <description>&lt;P&gt;Now i am getting something by below query but its give me values with "null" column and timeframe column where as time frame column is showing right time and null column showing the right values but i don't need values with null column name so for that I have used stats command with the below query (| stats values(*) as * by remotesysid) but then again it is giving me "no result found".. &lt;/P&gt;

&lt;P&gt;index=abc sourcetype=xyz | timechart count by remotesysid&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236345#M70195</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236346#M70196</link>
      <description>&lt;P&gt;I think it's going wrong somewhere on the sourcetype=xyz assignment.  That's not getting done for some reason so nothing that depends on it happens either.  If it were getting done, the search would return a bunch of blanks, not "no results found" (I think).&lt;/P&gt;

&lt;P&gt;Did the host change IP addresses or something?  &lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236346#M70196</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-09-21T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236347#M70197</link>
      <description>&lt;P&gt;My data is like given below -&lt;/P&gt;

&lt;P&gt;INFO [http-8080-Processor22] 09-15 15:22:40 RemoteSystemId is nullcom.basware.bt.access.RemoteSystemIDNullException: Remote-System is NULL! Check the URL (MessengerServlet.java:257) &lt;BR /&gt;
INFO [http-8080-Processor24] 09-15 15:21:40 RemoteSystemId is nullcom.basware.bt.access.RemoteSystemIDNullException: Remote-System is NULL! Check the URL (MessengerServlet.java:257) &lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236347#M70197</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T12:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236348#M70198</link>
      <description>&lt;P&gt;Everything is handling by my system. Logs are placed in my local system. sourcetype is defined in my local system inputs.conf file and i am pushing logs on the server by splunk forwarder from my local system. &lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236348#M70198</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236349#M70199</link>
      <description>&lt;P&gt;What is the [xyz] stanza of your props.conf file?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:42:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236349#M70199</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-09-21T12:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236350#M70200</link>
      <description>&lt;P&gt;sorry but didn't get you? could you please elaborate more?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236350#M70200</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T12:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236351#M70201</link>
      <description>&lt;P&gt;How is the field "remotesystemid" extracted? You should have an entry in your props.conf file, which is located either in $SPLUNK_HOME/etc/system/local/ or $SPLUNK_HOME/etc/users/yourusername/search/local/ - depending if the field extraction is public or private&lt;/P&gt;

&lt;P&gt;Please refer to the link &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; has posted in his comment for further info about the props.conf&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236351#M70201</guid>
      <dc:creator>DennisMohn</dc:creator>
      <dc:date>2020-09-29T07:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236352#M70202</link>
      <description>&lt;P&gt;Once the logs get to your local system (the indexer), there should be a props.conf file describing how the xyz sourcetype should be handled.  The relevant portion of that file will begin with "[xyz]".  Please share that text, if it exists.  If it doesn't exist, then we've found your problem.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236352#M70202</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-09-21T13:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236353#M70203</link>
      <description>&lt;P&gt;First on splunk server its found under user directory and it has following entries under it -&lt;/P&gt;

&lt;P&gt;[sc-kofax-extracts]&lt;BR /&gt;
[sc-nova-email]&lt;BR /&gt;
[ng-pay]&lt;/P&gt;

&lt;P&gt;With this it is found under (etc/system/local/) as well and entries are&lt;/P&gt;

&lt;P&gt;[my-onp-front]&lt;BR /&gt;
TRANSFORMS-drop_noise = heartbeat&lt;/P&gt;

&lt;P&gt;and on my local system from where i am pushing the data to splunk server through universal forwarder, its found under ($SPLUNK_HOME\SplunkUniversalForwarder\etc\system\default) and under this there are no entries related to "remotesystemid" &lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236353#M70203</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236354#M70204</link>
      <description>&lt;P&gt;First on splunk server its found under user directory and it has following entries under it -&lt;/P&gt;

&lt;P&gt;[sc-kofax-extracts]&lt;BR /&gt;
[sc-nova-email]&lt;BR /&gt;
[ng-pay]&lt;/P&gt;

&lt;P&gt;With this it is found under (etc/system/local/) as well and entries are&lt;/P&gt;

&lt;P&gt;[my-onp-front]&lt;BR /&gt;
TRANSFORMS-drop_noise = heartbeat&lt;/P&gt;

&lt;P&gt;and on my local system from where i am pushing the data to splunk server through universal forwarder, its found under ($SPLUNK_HOMESplunkUniversalForwarderetcsystemdefault) and under this there are no entries related to "remotesystemid" &lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236354#M70204</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T13:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236355#M70205</link>
      <description>&lt;P&gt;So this seems to be the problem. The field "remotesystemid" is never extracted, so Splunk does not know how to handle your request.&lt;/P&gt;

&lt;P&gt;I suggest you check out the Field Extractor Manual: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.6/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.6/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;After you have added a field extraction for remotesystemid, you can go on with your search.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236355#M70205</guid>
      <dc:creator>DennisMohn</dc:creator>
      <dc:date>2015-09-21T13:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236356#M70206</link>
      <description>&lt;P&gt;I don't see an [xyz] stanza in your etc/system/local/props.conf file.  That means Splunk has no instructions about how to process that sourcetype and won't know how to find the remotesystemid field.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236356#M70206</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-09-21T13:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236357#M70207</link>
      <description>&lt;P&gt;Hey Dennis.. the page you have shared with me and the procedure that is mentioned on the page for making field extraction, i have made my field extraction in the same way as it is mentioned on the page so do you have any idea why Splunk behave weird. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236357#M70207</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T13:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236358#M70208</link>
      <description>&lt;P&gt;My logs are like given below from which i am making extraction "remotesystemid"&lt;/P&gt;

&lt;P&gt;INFO [http-8080-Processor22] 09-15 15:22:40 RemoteSystemId is nullcom.basware.bt.access.RemoteSystemIDNullException: Remote-System is NULL! Check the URL (MessengerServlet.java:257)&lt;BR /&gt;
INFO [http-8080-Processor24] 09-15 15:21:40 RemoteSystemId is nullcom.basware.bt.access.RemoteSystemIDNullException: Remote-System is NULL! Check the URL (MessengerServlet.java:257) &lt;/P&gt;

&lt;P&gt;Then why Splunk not taking it as a extraction? do you have any suggestions? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236358#M70208</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236359#M70209</link>
      <description>&lt;P&gt;If you made the field extraction like mentioned in the tutorial, there should be an entry in your local props.conf file for it. &lt;/P&gt;

&lt;P&gt;Can you check "Settings =&amp;gt; Fields =&amp;gt; Field Extractions" if your extraction shows up? Please post the regex under "Extractions/Transform" &lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236359#M70209</guid>
      <dc:creator>DennisMohn</dc:creator>
      <dc:date>2015-09-21T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract not giving the exact result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236360#M70210</link>
      <description>&lt;P&gt;Hey Dennis,&lt;/P&gt;

&lt;P&gt;the last comment that you have posted i am not able to see that comment on this forum but though getting alert on my mail id.. so on basis of your questionbelow given is the  "Extractions/Transform"&lt;/P&gt;

&lt;P&gt;(?i) Removed (?P[^ ]+)&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 14:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-not-giving-the-exact-result/m-p/236360#M70210</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-09-21T14:09:25Z</dc:date>
    </item>
  </channel>
</rss>

