<?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 mix fields from two sourcetypes in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460098#M6613</link>
    <description>&lt;P&gt;That can be done without using &lt;CODE&gt;join&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=pan:threat src IN (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12) raw_category = "web-advertisements") OR
sourcetype="WinEventLog:Security" 
| eval src=coalesce(src, 'Source Address', 'Source Network Address')
| stats values(*) as * by src
| stats count values(src) as src by Account_Name
| top limit=1 Account_Name 
| table src Account_Name count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Dec 2019 13:55:15 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-12-11T13:55:15Z</dc:date>
    <item>
      <title>How to mix fields from two sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460095#M6610</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have these two searches:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=pan:threat src IN (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12)
| where raw_category = "web-advertisements"
| stats count by src
| sort count DESC
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security" 
| stats count by Account_Name 
| top limit=1 Account_Name 
| table Account_Name 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The src field from "pan:threat" sourcetype will be found as "Source Address" or "Source Network Address" on "WinEventLog:Security" sourcetype.&lt;/P&gt;

&lt;P&gt;I want to retrieve the Account_Name field from "WinEventLog:Security" for each src on "pan:threat" and show them in a table with src and count from "pan:threat" and Account_Name from "WinEventLog:Security". is this possible?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460095#M6610</guid>
      <dc:creator>pacmac</dc:creator>
      <dc:date>2020-09-30T03:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to mix fields from two sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460096#M6611</link>
      <description>&lt;P&gt;Thanks for editing @evzhang&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 01:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460096#M6611</guid>
      <dc:creator>pacmac</dc:creator>
      <dc:date>2019-12-11T01:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to mix fields from two sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460097#M6612</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;This can be possible using join command but you need to have 2 identical field names.&lt;BR /&gt;
You can use eval or rename to make 2 identical fields and than use a left join on the common field.&lt;/P&gt;

&lt;P&gt;You can find join documentation here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 13:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460097#M6612</guid>
      <dc:creator>raduurjan</dc:creator>
      <dc:date>2019-12-11T13:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to mix fields from two sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460098#M6613</link>
      <description>&lt;P&gt;That can be done without using &lt;CODE&gt;join&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=pan:threat src IN (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12) raw_category = "web-advertisements") OR
sourcetype="WinEventLog:Security" 
| eval src=coalesce(src, 'Source Address', 'Source Network Address')
| stats values(*) as * by src
| stats count values(src) as src by Account_Name
| top limit=1 Account_Name 
| table src Account_Name count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Dec 2019 13:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-mix-fields-from-two-sourcetypes/m-p/460098#M6613</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-12-11T13:55:15Z</dc:date>
    </item>
  </channel>
</rss>

