<?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: query for the count basedo the server in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371952#M109447</link>
    <description>&lt;P&gt;to access the built in field extractor in the GUI:&lt;BR /&gt;
search for those events and then in the event you will see the Event Actions pulldown &amp;gt; Extract Fields&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2017 19:18:32 GMT</pubDate>
    <dc:creator>rphillips_splk</dc:creator>
    <dc:date>2017-11-15T19:18:32Z</dc:date>
    <item>
      <title>query for the count basedo the server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371950#M109445</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Below is the sample logs and I want to see the how many events generated from each server. Since there are different servers with different format , field extractions is not working . Can I please know how to write a query to display events generated by each server.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;(highlighted are the server names)&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;2016-11-15 13:35,123124e3,ADA,22361,jobtype event Jun 08 17:23:53 EDT 2017,admin,COMPLETED,2017-11-15 00:00:00.000,2017-11-15 00:00:00.000,2017-11-15 00:00:59.372,2017-11-15 00:00:59.564,&lt;STRONG&gt;apache34&lt;/STRONG&gt;,,0,P3,&lt;/P&gt;

&lt;P&gt;2016-11-15 13:35,123124e3,ADA,22361,jobtype event Jun 08 17:23:53 EDT 2017,admin,COMPLETED,2017-11-15 00:00:00.000,2017-11-15 00:00:00.000,2017-11-15 00:00:59.372,2017-11-15 00:00:59.564,&lt;STRONG&gt;ab-12312312.xy12.absv.api.comm&lt;/STRONG&gt;,,0,P3,&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 19:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371950#M109445</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-11-15T19:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: query for the count basedo the server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371951#M109446</link>
      <description>&lt;P&gt;since your events are comma delimited you could use Splunk's search time field extractor in the GUI to extract all of the fields and name them what you like. For example if you are using server as a field name you would then have a search that looks like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=x sourcetype=y | stats count by server&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In most cases the host field in the event is what you would use unless you've got another scenario where the host field is another host such as your HF or syslog receiver&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 19:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371951#M109446</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2017-11-15T19:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: query for the count basedo the server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371952#M109447</link>
      <description>&lt;P&gt;to access the built in field extractor in the GUI:&lt;BR /&gt;
search for those events and then in the event you will see the Event Actions pulldown &amp;gt; Extract Fields&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 19:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371952#M109447</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2017-11-15T19:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: query for the count basedo the server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371953#M109448</link>
      <description>&lt;P&gt;thank you for the reply.. but extracting the server is difficult as servers doesn't have constant name.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 19:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371953#M109448</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-11-15T19:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: query for the count basedo the server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371954#M109449</link>
      <description>&lt;P&gt;Without extracting the hostname field that you want, you &lt;STRONG&gt;cannot&lt;/STRONG&gt; do what you want. You can't count something that you can't distinguish. If all you can see is that they are animals, then you can't count the number of birds, because you can't tell a bird from an elephant.&lt;/P&gt;

&lt;P&gt;It should be possible to extract the hostname into a field even if there are different formats. Since the events that you supplied were of the same format, please provide a few examples of the different formats, and perhaps we can help you get the file extraction working.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 19:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-the-count-basedo-the-server/m-p/371954#M109449</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-11-15T19:45:00Z</dc:date>
    </item>
  </channel>
</rss>

