<?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 Cluster Command Based on Multiple Fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Command-Based-on-Multiple-Fields/m-p/508841#M142160</link>
    <description>&lt;P&gt;Can the cluster command cluster based on more than one field? I know we can change which field to cluster by, but can we cluster by multiple fields?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 16:19:21 GMT</pubDate>
    <dc:creator>michaelsplunk1</dc:creator>
    <dc:date>2020-07-13T16:19:21Z</dc:date>
    <item>
      <title>Cluster Command Based on Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Command-Based-on-Multiple-Fields/m-p/508841#M142160</link>
      <description>&lt;P&gt;Can the cluster command cluster based on more than one field? I know we can change which field to cluster by, but can we cluster by multiple fields?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 16:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cluster-Command-Based-on-Multiple-Fields/m-p/508841#M142160</guid>
      <dc:creator>michaelsplunk1</dc:creator>
      <dc:date>2020-07-13T16:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Command Based on Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Command-Based-on-Multiple-Fields/m-p/508857#M142164</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70257"&gt;@michaelsplunk1&lt;/a&gt;&amp;nbsp; you can use eval to merge the fields together and then perform cluster on the combined field. Following is a run anywhere example based on Splunk's _internal index that merges log_level and component fields and performs cluster on the combined field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal sourcetype=splunkd
| fields log_level component
| eval merge_field=log_level."|".component
| cluster field=merge_field showcount=t t=0.5
| sort - cluster_count
| eval merge_field=split(merge_field,"|"), log_level=mvindex(merge_field,0),component=mvindex(merge_field,1)
| table log_level component cluster_count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 17:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cluster-Command-Based-on-Multiple-Fields/m-p/508857#M142164</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-07-13T17:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Command Based on Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Command-Based-on-Multiple-Fields/m-p/508859#M142165</link>
      <description>&lt;P&gt;The documentation says&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Syntax: field=&amp;lt;field&amp;gt;
Description: Name of the field to analyze in each event.
Default: _raw&lt;/LI-CODE&gt;&lt;P&gt;The phrase "the field" implies only one field can be used.&amp;nbsp; For more than one field, try &lt;FONT face="courier new,courier"&gt;_raw&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 17:48:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cluster-Command-Based-on-Multiple-Fields/m-p/508859#M142165</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-13T17:48:21Z</dc:date>
    </item>
  </channel>
</rss>

