<?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 search filed values from sourcetype1 to another sourcetype2 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564241#M196546</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I need help in searching field value from the first search to another search with deferent sourcetype and combine both search fields in one table.&lt;BR /&gt;but the issue is filed name is the same in both sourcetype but the values are different.&lt;BR /&gt;example:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sourcetype 1 has filed name "user" with value "ABCD"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sourcetype 2 has filed name "user" with value "xxx\\ABCD"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried with below query but not getting the output&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sourcetype=sourcetype1 | eval User="*".User&lt;BR /&gt;| table User | join User [search sourcetype=sourcetype2 | fields User HostName HostIP FileName Timestamp Message] | table User Email HostName HostIP FileName&amp;nbsp; Message&lt;/P&gt;</description>
    <pubDate>Sun, 22 Aug 2021 19:53:23 GMT</pubDate>
    <dc:creator>shrinivaskittur</dc:creator>
    <dc:date>2021-08-22T19:53:23Z</dc:date>
    <item>
      <title>search filed values from sourcetype1 to another sourcetype2</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564241#M196546</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I need help in searching field value from the first search to another search with deferent sourcetype and combine both search fields in one table.&lt;BR /&gt;but the issue is filed name is the same in both sourcetype but the values are different.&lt;BR /&gt;example:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sourcetype 1 has filed name "user" with value "ABCD"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sourcetype 2 has filed name "user" with value "xxx\\ABCD"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried with below query but not getting the output&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sourcetype=sourcetype1 | eval User="*".User&lt;BR /&gt;| table User | join User [search sourcetype=sourcetype2 | fields User HostName HostIP FileName Timestamp Message] | table User Email HostName HostIP FileName&amp;nbsp; Message&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 19:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564241#M196546</guid>
      <dc:creator>shrinivaskittur</dc:creator>
      <dc:date>2021-08-22T19:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: search filed values from sourcetype1 to another sourcetype2</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564242#M196547</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=index1 sourcetype=sourcetype1) OR (index=index2 sourcetype=sourcetype2)
| eval user=replace(user,"xxx\\\\\\\\","")
| rename user as User
| stats values(Email) as Email values(HostName) as HostName values(HostIP) as HostIP values(FileName) as FileName values(Message) as Message by User&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you like it, please mark it as the Solution; if not, let me know what needs changed.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 20:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564242#M196547</guid>
      <dc:creator>jwalthour</dc:creator>
      <dc:date>2021-08-22T20:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: search filed values from sourcetype1 to another sourcetype2</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564243#M196548</link>
      <description>&lt;P&gt;Hello J&lt;SPAN&gt;walthour,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your reply, but the "xxx" is not static value here,&amp;nbsp; need some command&amp;nbsp;to remove&amp;nbsp;&amp;nbsp;all text before "\\"&amp;nbsp; and including "\\"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 20:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564243#M196548</guid>
      <dc:creator>shrinivaskittur</dc:creator>
      <dc:date>2021-08-22T20:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: search filed values from sourcetype1 to another sourcetype2</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564244#M196549</link>
      <description>&lt;P&gt;Replace line 2 with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=user "^\S{3}\\\\\\\\(?P&amp;lt;user&amp;gt;[\s\S]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or this gets you there, too:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=user "\\\\\\\\(?P&amp;lt;user&amp;gt;[\s\S]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 22 Aug 2021 20:38:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564244#M196549</guid>
      <dc:creator>jwalthour</dc:creator>
      <dc:date>2021-08-22T20:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: search filed values from sourcetype1 to another sourcetype2</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564419#M196618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for coming again, I have verified the output table and the table contain only the field of&amp;nbsp;sourcetype1 and the&amp;nbsp;sourcetype2&amp;nbsp; field values are showing blank&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 19:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-filed-values-from-sourcetype1-to-another-sourcetype2/m-p/564419#M196618</guid>
      <dc:creator>shrinivaskittur</dc:creator>
      <dc:date>2021-08-23T19:50:35Z</dc:date>
    </item>
  </channel>
</rss>

