<?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 eval new field to filter events by a number in the raw data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-eval-new-field-to-filter-events-by-a-number-in-the-raw/m-p/259420#M175854</link>
    <description>&lt;P&gt;@annamareddi - Did the answer provided by jplumsdaine22 help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2017 04:28:31 GMT</pubDate>
    <dc:creator>aaraneta_splunk</dc:creator>
    <dc:date>2017-02-12T04:28:31Z</dc:date>
    <item>
      <title>how to eval new field to filter events by a number in the raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-eval-new-field-to-filter-events-by-a-number-in-the-raw/m-p/259418#M175852</link>
      <description>&lt;P&gt;i want to filter my data, based on the key numbers present in raw events.&lt;BR /&gt;
example&lt;BR /&gt;
event1:&lt;BR /&gt;
sdfgn dfnlk  1/25/2017 ldjod djf lkd "iuhdfsadk sdkdljnkdl :key:123"jhdjdckl lcsdlkd &lt;/P&gt;

&lt;P&gt;event2:&lt;BR /&gt;
sdfgn dfnlk  1/25/2017 ldjod djf lkd "iuhdfsadk sdkdljnkdl :key:134"jhdjdckl lcsdlkd &lt;/P&gt;

&lt;P&gt;event3:&lt;BR /&gt;
sdfgn dfnlk  1/25/2017 ldjod djf lkd "iuhdfsadk sdkdljnkdl :key:1059"jhdjdckl lcsdlkd &lt;/P&gt;

&lt;P&gt;event4:&lt;BR /&gt;
sdfgn dfnlk  1/25/2017 ldjod djf lkd "iuhdfsadk sdkdljnkdl :key:1059"jhdjdckl lcsdlkd &lt;/P&gt;

&lt;P&gt;i dont want repeated values, so i want the unique key values.&lt;/P&gt;

&lt;P&gt;how to eval new field to filter this data by key values.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-eval-new-field-to-filter-events-by-a-number-in-the-raw/m-p/259418#M175852</guid>
      <dc:creator>annamareddi</dc:creator>
      <dc:date>2017-01-25T10:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to eval new field to filter events by a number in the raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-eval-new-field-to-filter-events-by-a-number-in-the-raw/m-p/259419#M175853</link>
      <description>&lt;P&gt;Do you mean that the field is not being extracted? You could use rex to create a new field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex ":key:(?&amp;lt;key&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then you can use the field with stats etc. EG&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex ":key:(?&amp;lt;key&amp;gt;[^\"]+)" | stats count by key
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 13:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-eval-new-field-to-filter-events-by-a-number-in-the-raw/m-p/259419#M175853</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2017-01-26T13:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to eval new field to filter events by a number in the raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-eval-new-field-to-filter-events-by-a-number-in-the-raw/m-p/259420#M175854</link>
      <description>&lt;P&gt;@annamareddi - Did the answer provided by jplumsdaine22 help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 04:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-eval-new-field-to-filter-events-by-a-number-in-the-raw/m-p/259420#M175854</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-02-12T04:28:31Z</dc:date>
    </item>
  </channel>
</rss>

