<?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: Count the Error, Info and Warnings in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445095#M21196</link>
    <description>&lt;P&gt;Thanks for your response Renjith.&lt;/P&gt;

&lt;P&gt;Same Log is &lt;BR /&gt;
"12-15 20:22:55,671 ERROR - logs/app/fmapp1 12-15,20:22:32.734 ios55 1-426 0 2 DDC1-4 connect fail XXX:XXX Connection refused (Connection refused)"&lt;/P&gt;

&lt;P&gt;"12-15 20:22:55,671 Info- logs/app/fmapp1 12-15,20:22:32.734 ios55 1-426 0 2 DDC1-4 Connected&lt;/P&gt;

&lt;P&gt;Currently am using below search.&lt;BR /&gt;
index = bla source="&lt;EM&gt;" Field2=&lt;/EM&gt; host=* |top 1 Field2 by source, host |rename Field2 as Status, host as HOST&lt;/P&gt;

&lt;P&gt;Filed2 is ERROR, INFO or WARN&lt;/P&gt;

&lt;P&gt;Output am getting at present is:&lt;BR /&gt;
source↕                              HOST↕                  Status↕      count↕      percent↕&lt;BR /&gt;
app/log.txt                     ServerName             INFO           95           100.000000 &lt;/P&gt;

&lt;P&gt;Expected Output i need is similar to:&lt;BR /&gt;
Source↕          HOST↕          Status↕      count↕  percent↕  Status↕  count↕   percent↕ Status↕ count↕      percent↕&lt;BR /&gt;
app/log.txt    ServerName  INFO          95         100           Error         0               0         Warn           0              0 &lt;/P&gt;</description>
    <pubDate>Mon, 24 Dec 2018 15:21:46 GMT</pubDate>
    <dc:creator>a508184</dc:creator>
    <dc:date>2018-12-24T15:21:46Z</dc:date>
    <item>
      <title>Count the Error, Info and Warnings</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445092#M21193</link>
      <description>&lt;P&gt;Am very new to splunk, i need a query to get the count and percentage of Error, Info and Warnings in a table.&lt;/P&gt;

&lt;P&gt;Error, Info and Warnings filed is already extracted.&lt;/P&gt;

&lt;P&gt;Thanks in advance team.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Nithin Setty&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 13:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445092#M21193</guid>
      <dc:creator>a508184</dc:creator>
      <dc:date>2018-12-24T13:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Error, Info and Warnings</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445093#M21194</link>
      <description>&lt;P&gt;@a508184, &lt;BR /&gt;
Nithin, are these values of a field Status or do you have fields  called Error,Info ,etc with count , for e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error   Warning Info
12      10      15
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would be nice if you could share some sample events (anonymize confidential data)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 14:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445093#M21194</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-12-24T14:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Error, Info and Warnings</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445094#M21195</link>
      <description>&lt;P&gt;What queries have you tried so far?&lt;BR /&gt;
Are Error, Info, and Warnings separate fields or possible values of a single field? &lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 14:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445094#M21195</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-24T14:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Error, Info and Warnings</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445095#M21196</link>
      <description>&lt;P&gt;Thanks for your response Renjith.&lt;/P&gt;

&lt;P&gt;Same Log is &lt;BR /&gt;
"12-15 20:22:55,671 ERROR - logs/app/fmapp1 12-15,20:22:32.734 ios55 1-426 0 2 DDC1-4 connect fail XXX:XXX Connection refused (Connection refused)"&lt;/P&gt;

&lt;P&gt;"12-15 20:22:55,671 Info- logs/app/fmapp1 12-15,20:22:32.734 ios55 1-426 0 2 DDC1-4 Connected&lt;/P&gt;

&lt;P&gt;Currently am using below search.&lt;BR /&gt;
index = bla source="&lt;EM&gt;" Field2=&lt;/EM&gt; host=* |top 1 Field2 by source, host |rename Field2 as Status, host as HOST&lt;/P&gt;

&lt;P&gt;Filed2 is ERROR, INFO or WARN&lt;/P&gt;

&lt;P&gt;Output am getting at present is:&lt;BR /&gt;
source↕                              HOST↕                  Status↕      count↕      percent↕&lt;BR /&gt;
app/log.txt                     ServerName             INFO           95           100.000000 &lt;/P&gt;

&lt;P&gt;Expected Output i need is similar to:&lt;BR /&gt;
Source↕          HOST↕          Status↕      count↕  percent↕  Status↕  count↕   percent↕ Status↕ count↕      percent↕&lt;BR /&gt;
app/log.txt    ServerName  INFO          95         100           Error         0               0         Warn           0              0 &lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 15:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445095#M21196</guid>
      <dc:creator>a508184</dc:creator>
      <dc:date>2018-12-24T15:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Error, Info and Warnings</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445096#M21197</link>
      <description>&lt;P&gt;Thanks for your response Rich.&lt;/P&gt;

&lt;P&gt;Same Log is &lt;BR /&gt;
"12-15 20:22:55,671 ERROR - logs/app/fmapp1 12-15,20:22:32.734 ios55 1-426 0 2 DDC1-4 connect fail XXX:XXX Connection refused (Connection refused)"&lt;/P&gt;

&lt;P&gt;"12-15 20:22:55,671 Info- logs/app/fmapp1 12-15,20:22:32.734 ios55 1-426 0 2 DDC1-4 Connected&lt;/P&gt;

&lt;P&gt;Currently am using below search.&lt;BR /&gt;
index = bla source="&lt;EM&gt;" Field2=&lt;/EM&gt; host=* |top 1 Field2 by source, host |rename Field2 as Status, host as HOST&lt;/P&gt;

&lt;P&gt;Filed2 is ERROR, INFO or WARN&lt;/P&gt;

&lt;P&gt;Output am getting at present is:&lt;BR /&gt;
source↕                              HOST↕                  Status↕      count↕      percent↕&lt;BR /&gt;
app/log.txt                     ServerName             INFO           95           100.000000 &lt;/P&gt;

&lt;P&gt;Expected Output i need is similar to:&lt;BR /&gt;
Source↕          HOST↕          Status↕      count↕  percent↕  Status↕  count↕   percent↕ Status↕ count↕      percent↕&lt;BR /&gt;
app/log.txt    ServerName  INFO          95         100           Error         0               0         Warn           0              0 &lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 15:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445096#M21197</guid>
      <dc:creator>a508184</dc:creator>
      <dc:date>2018-12-24T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Error, Info and Warnings</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445097#M21198</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;index = bla source="" Field2=* host=* | stats count as total, count(eval(Field2="INFO")) as Info, count(eval(Field2="WARN")) as Warn, count(eval(Field2="ERROR")) as Error by source host | eval InfoPct=round(Info*100/total),2), WarnPct=round(Warn*100/total,2), ErrorPct=round(Error*100/total,2) | table source host Field2 Info InfoPct Warn WarnPct Error ErrorPct&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445097#M21198</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T22:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Error, Info and Warnings</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445098#M21199</link>
      <description>&lt;P&gt;Thanks Rich for your help&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 11:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Count-the-Error-Info-and-Warnings/m-p/445098#M21199</guid>
      <dc:creator>a508184</dc:creator>
      <dc:date>2018-12-26T11:58:49Z</dc:date>
    </item>
  </channel>
</rss>

