<?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 output matching fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144777#M40312</link>
    <description>&lt;P&gt;source="logFILE"| rex field=_raw "(?i) Number: (?P&lt;SERIAL_NUM_CD&gt;[^ ]+)"|join SERIAL_NUM_CD[search source="IndexeddbDATA"]&lt;BR /&gt;
I tried the above query its working, but other non matching  fields are also displayed.&lt;/SERIAL_NUM_CD&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:29:29 GMT</pubDate>
    <dc:creator>harshavrath</dc:creator>
    <dc:date>2020-09-28T16:29:29Z</dc:date>
    <item>
      <title>How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144775#M40310</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have indexed few records from my DB into Splunk &amp;amp; an log file is also indexed into Splunk. There is one matching Field in both the indexed sources i.e, Serial Number.&lt;/P&gt;

&lt;P&gt;My question is how can i output only the matching Events with the same Serial Number using Splunk Search. &lt;/P&gt;

&lt;P&gt;Any Help is Appreciated, &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 13:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144775#M40310</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2014-04-28T13:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144776#M40311</link>
      <description>&lt;P&gt;Here's one way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;DB search&amp;gt; | join SerialNumber [&amp;lt;log file search&amp;gt;] | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Apr 2014 14:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144776#M40311</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-04-28T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144777#M40312</link>
      <description>&lt;P&gt;source="logFILE"| rex field=_raw "(?i) Number: (?P&lt;SERIAL_NUM_CD&gt;[^ ]+)"|join SERIAL_NUM_CD[search source="IndexeddbDATA"]&lt;BR /&gt;
I tried the above query its working, but other non matching  fields are also displayed.&lt;/SERIAL_NUM_CD&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144777#M40312</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2020-09-28T16:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144778#M40313</link>
      <description>&lt;P&gt;The case of field extracted and field used for join is different. Splunk is case sensitive in field names (always). ALso, check if you have field SERIAL_NUM_CD in the source IndexeddbDATA with same case.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144778#M40313</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144779#M40314</link>
      <description>&lt;P&gt;in query its Caps only, after i commented it was automatically converted into lower case.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 14:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144779#M40314</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2014-04-29T14:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144780#M40315</link>
      <description>&lt;P&gt;It would be helpful to see some sample events from each source.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 14:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144780#M40315</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-04-29T14:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144781#M40316</link>
      <description>&lt;P&gt;The query that I used is&lt;/P&gt;

&lt;P&gt;source="Logfile.log"   | rex field=_raw "(?i) Number: (?P&lt;SERIAL_NUM_CD&gt;[^ ]+)" | search SERIAL_NUM_CD="*" | join SERIAL_NUM_CD[search source="IndexeddbDATA"]&lt;/SERIAL_NUM_CD&gt;&lt;/P&gt;

&lt;P&gt;I’m able to get the matching fields as output from the Log file but my requirement is I want the matching fields from both the log as well as DB  to be displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144781#M40316</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2020-09-28T16:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to output matching fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144782#M40317</link>
      <description>&lt;P&gt;You showed your query previously.  Now we need to see sample events.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 11:44:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-output-matching-fields/m-p/144782#M40317</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-02T11:44:09Z</dc:date>
    </item>
  </channel>
</rss>

