<?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 perform search only using PhoneNum? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334026#M164438</link>
    <description>&lt;P&gt;@hkchew&lt;/P&gt;

&lt;P&gt;try this &lt;BR /&gt;
sourcetype=sourcetypeA | fields ServiceProvider, GroupID, DeviceUsed, DeviceSerialNum | join GroupID [ search sourcetype=sourcetypeB | fields PhoneNum, VAS1, VAS2 ] | search PhoneNum=* | table PhoneNum, GroupID, DeviceUsed, DeviceSerialNum&lt;/P&gt;

&lt;P&gt;i hope this helps&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 21:02:17 GMT</pubDate>
    <dc:creator>sbbadri</dc:creator>
    <dc:date>2017-12-11T21:02:17Z</dc:date>
    <item>
      <title>How to perform search only using PhoneNum?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334025#M164437</link>
      <description>&lt;P&gt;I have 2 sourcetypes:&lt;BR /&gt;
Eg. sourcetypeA has fields such as ServiceProvider, GroupID, DeviceUsed, DeviceSerialNum&lt;BR /&gt;
      sourcetypeB has fields such as Name, GroupID, PhoneNum, VAS1, VAS2&lt;/P&gt;

&lt;P&gt;When I search using PhoneNum ONLY,  the result needs to display PhoneNum, GroupID, DeviceUsed, DeviceSerialNum&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 19:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334025#M164437</guid>
      <dc:creator>hkchew</dc:creator>
      <dc:date>2017-12-11T19:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform search only using PhoneNum?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334026#M164438</link>
      <description>&lt;P&gt;@hkchew&lt;/P&gt;

&lt;P&gt;try this &lt;BR /&gt;
sourcetype=sourcetypeA | fields ServiceProvider, GroupID, DeviceUsed, DeviceSerialNum | join GroupID [ search sourcetype=sourcetypeB | fields PhoneNum, VAS1, VAS2 ] | search PhoneNum=* | table PhoneNum, GroupID, DeviceUsed, DeviceSerialNum&lt;/P&gt;

&lt;P&gt;i hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 21:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334026#M164438</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-12-11T21:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform search only using PhoneNum?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334027#M164439</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=sourcetypeA) OR (sourcetype=sourcetypeB PhoneNum="YourSearchedPhoneNumHere")
| fields GroupID, DeviceUsed, DeviceSerialNum PhoneNum
| stats values(PhoneNum) as PhoneNum values(DeviceUsed) as DeviceUsed values(DeviceSerialNum) as DeviceSerialNum by GroupID
| where isnotnull(PhoneNum)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Dec 2017 22:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334027#M164439</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-11T22:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform search only using PhoneNum?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334028#M164440</link>
      <description>&lt;P&gt;Thank you, guys but none of the above works.&lt;BR /&gt;
The field name of GroupID of sourcetypeA is different from sourcetypeB although both GroupID are found on field#2 in both sourcetype.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 09:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334028#M164440</guid>
      <dc:creator>hkchew</dc:creator>
      <dc:date>2017-12-12T09:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform search only using PhoneNum?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334029#M164441</link>
      <description>&lt;P&gt;Thank you guys but none of the above works.&lt;BR /&gt;
The field name of the groupid is different in both sourcetype although groupdid is found in the field#2 of both sourcetype&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 09:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-search-only-using-PhoneNum/m-p/334029#M164441</guid>
      <dc:creator>hkchew</dc:creator>
      <dc:date>2017-12-12T09:54:24Z</dc:date>
    </item>
  </channel>
</rss>

