<?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: Fields in another sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Fields-in-another-sourcetype/m-p/157779#M31967</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
 I think that you can use the &lt;STRONG&gt;appendcols&lt;/STRONG&gt; command to do that.&lt;BR /&gt;
To have the resulting table you need you have to pipe the search that produce the first result without user and then you use appendcols [  ] .in the square brakets you put the search that will produce only the field user from WSA sourcetype.&lt;BR /&gt;
 At the end you pipe all and you can use table command to display what you wanted. just like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search from ASA sourcetype | appendcols [subsearch from WSA] |table timestamp scr_ip count user&lt;/STRONG&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 19 Dec 2014 11:30:38 GMT</pubDate>
    <dc:creator>stephane_cyrill</dc:creator>
    <dc:date>2014-12-19T11:30:38Z</dc:date>
    <item>
      <title>Fields in another sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Fields-in-another-sourcetype/m-p/157778#M31966</link>
      <description>&lt;P&gt;Hi everyone:&lt;/P&gt;

&lt;P&gt;I have two sourcetypes: Cisco WSA, and Cisco ASA. WSA has user data, but ASA don't.&lt;BR /&gt;
I want to have the users for every source ip (src_ip) for asa. I have  DHCP.&lt;BR /&gt;
I have for example, this:&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;ASA top src_ip&lt;/P&gt;

&lt;P&gt;timestamp  !  src_ip  ! count&lt;BR /&gt;
      a             !    ip_a   !    2&lt;BR /&gt;
      b             !    ip_b   !    5&lt;/P&gt;

&lt;H2&gt;      c              !    ip_c   !    7  &lt;/H2&gt;

&lt;P&gt;but I need this:&lt;/P&gt;

&lt;P&gt;ASA top src_ip&lt;/P&gt;

&lt;P&gt;timestamp  !  src_ip  ! count ! user&lt;BR /&gt;
      a             !    ip_a   !    2      !    u1&lt;BR /&gt;
      b             !    ip_b   !    2     !     u5&lt;BR /&gt;
      d             !    ip_b   !    2     !    u2 &lt;BR /&gt;
      c              !    ip_c   !    4     !    u1&lt;BR /&gt;
      e              !    ip_c   !    3     !    u5&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Do someone know how to do something like this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Fields-in-another-sourcetype/m-p/157778#M31966</guid>
      <dc:creator>rubeniturrieta</dc:creator>
      <dc:date>2020-09-28T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in another sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Fields-in-another-sourcetype/m-p/157779#M31967</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
 I think that you can use the &lt;STRONG&gt;appendcols&lt;/STRONG&gt; command to do that.&lt;BR /&gt;
To have the resulting table you need you have to pipe the search that produce the first result without user and then you use appendcols [  ] .in the square brakets you put the search that will produce only the field user from WSA sourcetype.&lt;BR /&gt;
 At the end you pipe all and you can use table command to display what you wanted. just like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search from ASA sourcetype | appendcols [subsearch from WSA] |table timestamp scr_ip count user&lt;/STRONG&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2014 11:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Fields-in-another-sourcetype/m-p/157779#M31967</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2014-12-19T11:30:38Z</dc:date>
    </item>
  </channel>
</rss>

