<?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: How to subtract specific events, key pairs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382079#M111693</link>
    <description>&lt;P&gt;It should be a matter of adding &lt;CODE&gt;| search ID!="XXXXX *"&lt;/CODE&gt; to your query.  If you share the existing query we can be more specific.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 16:53:44 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-07-09T16:53:44Z</dc:date>
    <item>
      <title>How to subtract specific events, key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382076#M111690</link>
      <description>&lt;P&gt;Not sure where I should be going but, I am all for raw data going into fields, enhanced etc...&lt;BR /&gt;
I am looking at our raw data and there is a field called  &lt;CODE&gt;ID=XXXXXX&lt;/CODE&gt; which is the field I am interested in, there is also another occurrence of  &lt;CODE&gt;ID= XXXXX YYYYY&lt;/CODE&gt; in the event which I am not interested in. &lt;BR /&gt;
Both are showing up in my searches,  &lt;CODE&gt;NAME=MX001&lt;/CODE&gt; and the second one  &lt;CODE&gt;ID=MX001 YYYYY&lt;/CODE&gt;. &lt;BR /&gt;
I have tried Eval substr(ID,1,6) to no avail, any help would be appreciated, &lt;BR /&gt;
P.S. could this have been taken care of during original extraction??&lt;/P&gt;

&lt;P&gt;Thanks Ahead&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382076#M111690</guid>
      <dc:creator>cxfuent29</dc:creator>
      <dc:date>2019-07-09T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract specific events, key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382077#M111691</link>
      <description>&lt;P&gt;Could you clarify a couple of things?&lt;BR /&gt;
-Both fields are automatically extracted and they both exist in your index?&lt;BR /&gt;
-One is called &lt;STRONG&gt;NAME&lt;/STRONG&gt; and the other one &lt;STRONG&gt;ID&lt;/STRONG&gt;?&lt;BR /&gt;
-You only have use for &lt;STRONG&gt;NAME&lt;/STRONG&gt; but not for &lt;STRONG&gt;ID&lt;/STRONG&gt;??&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 16:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382077#M111691</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-07-09T16:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract specific events, key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382078#M111692</link>
      <description>&lt;P&gt;Correction: both fields are ID, both are automatically extracted and exist in one event.&lt;/P&gt;

&lt;P&gt;Sorry for type&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 16:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382078#M111692</guid>
      <dc:creator>cxfuent29</dc:creator>
      <dc:date>2019-07-09T16:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract specific events, key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382079#M111693</link>
      <description>&lt;P&gt;It should be a matter of adding &lt;CODE&gt;| search ID!="XXXXX *"&lt;/CODE&gt; to your query.  If you share the existing query we can be more specific.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 16:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382079#M111693</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-09T16:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract specific events, key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382080#M111694</link>
      <description>&lt;P&gt;Let me try to show examples:&lt;/P&gt;

&lt;P&gt;INPUT EVENTS:&lt;/P&gt;

&lt;P&gt;1) id=jim,addr=12 main st,phone=825-585-9865&lt;/P&gt;

&lt;P&gt;2) id=tom,addr=45 maple,phone=528-777-9685,id=tom second&lt;/P&gt;

&lt;P&gt;I am using a simple table:&lt;BR /&gt;
table id addr phone&lt;/P&gt;

&lt;P&gt;Output:&lt;BR /&gt;
jim                  12 main st    825-585-9865&lt;BR /&gt;
tom                45 maple     528-777-9685&lt;BR /&gt;
tom second&lt;BR /&gt;
(the line above is the problem)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 17:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382080#M111694</guid>
      <dc:creator>cxfuent29</dc:creator>
      <dc:date>2019-07-09T17:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract specific events, key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382081#M111695</link>
      <description>&lt;P&gt;I guess what I am trying to do is a report using the first occurrence of a field within an event.&lt;/P&gt;

&lt;P&gt;Some events have multiple fields some don't.&lt;/P&gt;

&lt;P&gt;I looked at stats first(xx), but it returned first occurrence of first event only.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 13:47:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-specific-events-key-pairs/m-p/382081#M111695</guid>
      <dc:creator>cxfuent29</dc:creator>
      <dc:date>2019-07-10T13:47:29Z</dc:date>
    </item>
  </channel>
</rss>

