<?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 What is the most efficient way to correlate fields from different sourcetypes in the same index by an asset_id key in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289176#M55197</link>
    <description>&lt;P&gt;I have some vulnerability and asset data I need to correlate but I am not sure of the best method to use...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rapid7 sourcetype="rapid7:nexpose:asset" | stats  values(os)  values(hostname)  by asset_id

1234    Microsoft blah   some_asset_name.corp.com   

1235    Linux blah  some_asset_name.corp.com    

index=rapid7 sourcetype="rapid7:nexpose:vuln"  "some vuln of interest" | stats values(signature) values(solution_summary) by asset_id

1234    signature_value  allows this blah blah attack   solution_summary_value disable blah bah

1235    signature_value  allows this blah blah attack   solution_summary_value disable blah bah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The two queries give me values based on the asset_id number, I just need a fast way to correlate the queries so I can report &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;os  hostname  signature   solution_summary   asset_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any advice appreciated.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2017 18:59:32 GMT</pubDate>
    <dc:creator>packet_hunter</dc:creator>
    <dc:date>2017-08-24T18:59:32Z</dc:date>
    <item>
      <title>What is the most efficient way to correlate fields from different sourcetypes in the same index by an asset_id key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289176#M55197</link>
      <description>&lt;P&gt;I have some vulnerability and asset data I need to correlate but I am not sure of the best method to use...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rapid7 sourcetype="rapid7:nexpose:asset" | stats  values(os)  values(hostname)  by asset_id

1234    Microsoft blah   some_asset_name.corp.com   

1235    Linux blah  some_asset_name.corp.com    

index=rapid7 sourcetype="rapid7:nexpose:vuln"  "some vuln of interest" | stats values(signature) values(solution_summary) by asset_id

1234    signature_value  allows this blah blah attack   solution_summary_value disable blah bah

1235    signature_value  allows this blah blah attack   solution_summary_value disable blah bah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The two queries give me values based on the asset_id number, I just need a fast way to correlate the queries so I can report &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;os  hostname  signature   solution_summary   asset_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any advice appreciated.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289176#M55197</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2017-08-24T18:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to correlate fields from different sourcetypes in the same index by an asset_id key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289177#M55198</link>
      <description>&lt;P&gt;I came up with...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rapid7 sourcetype="rapid7:nexpose:asset" OR sourcetype="rapid7:nexpose:vuln" [search index=rapid7  sourcetype="rapid7:nexpose:vuln" TLS 1.0  | fields asset_id] |stats values(hostname) values(os) values(signature) values(solution_summary) by asset_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;any other ideas on this?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 19:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289177#M55198</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2017-08-24T19:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to correlate fields from different sourcetypes in the same index by an asset_id key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289178#M55199</link>
      <description>&lt;P&gt;This should be just slightly more efficient than that ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rapid7 (sourcetype="rapid7:nexpose:asset" OR 
(sourcetype="rapid7:nexpose:vuln"  "some vuln of interest") )
 | stats values(hostname) as hostname, 
     values(os) as os,
     values(signature) as signature, 
     values(solution_summary) as solution_summary 
     values(sourcetype) as sourcetype by asset_id
 | where mvcount(sourcetype)&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Coded this way, it only has to search the index for the &lt;CODE&gt;vuln&lt;/CODE&gt; &lt;CODE&gt;sourcetype&lt;/CODE&gt; once.  However, if you have a large number of &lt;CODE&gt;os&lt;/CODE&gt; records, relative to &lt;CODE&gt;vuln&lt;/CODE&gt; records, then your way will be more efficient.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 20:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289178#M55199</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-24T20:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to correlate fields from different sourcetypes in the same index by an asset_id key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289179#M55200</link>
      <description>&lt;P&gt;yes this is faster... &lt;BR /&gt;
Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 14:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289179#M55200</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2017-08-25T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to correlate fields from different sourcetypes in the same index by an asset_id key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289180#M55201</link>
      <description>&lt;P&gt;When theory matches performance, believe performance.  &lt;/P&gt;

&lt;P&gt;When theory does NOT match performance, believe performance.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 16:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289180#M55201</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-25T16:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to correlate fields from different sourcetypes in the same index by an asset_id key</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289181#M55202</link>
      <description>&lt;P&gt;In a similar vein, I am stuck on getting values returned as intended. I am trying to get riskscore values for assets that have an exception applied, but only the exception values of risk. &lt;/P&gt;

&lt;P&gt;Something like this, but I am unclear how to differentiate the risk:&lt;BR /&gt;
index=rapid7 | transaction asset_id | makemv nexpose_tags delim=";" | stats sum(riskscore) as totalrisk, values(review_comment), values(submitted_by) by nexpose_tags | eval totalrisk=round(totalrisk) | sort -totalrisk&lt;/P&gt;

&lt;P&gt;Perhaps some version of your query above would fit into this query to show the asset group and its risk that is being excluded in Nexpose?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-most-efficient-way-to-correlate-fields-from/m-p/289181#M55202</guid>
      <dc:creator>ranich</dc:creator>
      <dc:date>2020-09-29T17:21:49Z</dc:date>
    </item>
  </channel>
</rss>

