<?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 Can I sort log event patterns by their source types? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-sort-log-event-patterns-by-their-source-types/m-p/395486#M114818</link>
    <description>&lt;P&gt;I am trying to identify which source types produce data with the same log format. Currently, I am using this query to show the highest percentage log pattern for access logs in my domain:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=*access*| cluster t=.7 labelonly=t | findkeywords labelfield=cluster_label | table sampleEvent percentInInputGroup| sort - percentInInputGroup  |top limit=10 percentInInputGroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I show which source types are being used to produce logs in that pattern group?&lt;/P&gt;

&lt;P&gt;Am I approaching this the correct way?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 20:09:10 GMT</pubDate>
    <dc:creator>alanzchan</dc:creator>
    <dc:date>2018-11-16T20:09:10Z</dc:date>
    <item>
      <title>Can I sort log event patterns by their source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-sort-log-event-patterns-by-their-source-types/m-p/395486#M114818</link>
      <description>&lt;P&gt;I am trying to identify which source types produce data with the same log format. Currently, I am using this query to show the highest percentage log pattern for access logs in my domain:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=*access*| cluster t=.7 labelonly=t | findkeywords labelfield=cluster_label | table sampleEvent percentInInputGroup| sort - percentInInputGroup  |top limit=10 percentInInputGroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I show which source types are being used to produce logs in that pattern group?&lt;/P&gt;

&lt;P&gt;Am I approaching this the correct way?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 20:09:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-sort-log-event-patterns-by-their-source-types/m-p/395486#M114818</guid>
      <dc:creator>alanzchan</dc:creator>
      <dc:date>2018-11-16T20:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I sort log event patterns by their source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-sort-log-event-patterns-by-their-source-types/m-p/395487#M114819</link>
      <description>&lt;P&gt;Try using the punct field.  This pulls out all of the punctuation in an event, which can be helpful in identifying similar events.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 20:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-sort-log-event-patterns-by-their-source-types/m-p/395487#M114819</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2018-11-17T20:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I sort log event patterns by their source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-sort-log-event-patterns-by-their-source-types/m-p/395488#M114820</link>
      <description>&lt;P&gt;@kmorris comment is spot on imho.&lt;BR /&gt;
you can start like that  for example:&lt;BR /&gt;
&lt;CODE&gt;| tstats count as event_count where index=* sourcetype=*access* by punct sourcetype&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2018 01:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-sort-log-event-patterns-by-their-source-types/m-p/395488#M114820</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-11-18T01:29:26Z</dc:date>
    </item>
  </channel>
</rss>

