<?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 how to show data with 2 different fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170070#M48661</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have two types of parameters in my logs i.e. "Batch received successfully" and "could not be found"  now i want to make dashboard with the help of these logs in which it will show data for hosts with these parameters like it will show that how many logs are coming on hourly basis with these parameters. There are two hosts from where the data coming so I have made query but not showing the proper output which I want.&lt;/P&gt;

&lt;P&gt;index="sc-kofax" sourcetype="sc-kofax-sv-acis" "Batch received successfully" OR "could not be found" | Stats count by host&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Ankit&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2015 10:02:12 GMT</pubDate>
    <dc:creator>sunnyparmar</dc:creator>
    <dc:date>2015-06-23T10:02:12Z</dc:date>
    <item>
      <title>how to show data with 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170070#M48661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have two types of parameters in my logs i.e. "Batch received successfully" and "could not be found"  now i want to make dashboard with the help of these logs in which it will show data for hosts with these parameters like it will show that how many logs are coming on hourly basis with these parameters. There are two hosts from where the data coming so I have made query but not showing the proper output which I want.&lt;/P&gt;

&lt;P&gt;index="sc-kofax" sourcetype="sc-kofax-sv-acis" "Batch received successfully" OR "could not be found" | Stats count by host&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Ankit&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170070#M48661</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-06-23T10:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data with 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170071#M48662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Use Field extractor for extracting different fields for  "Batch received successfully" &amp;amp; "could not be found" (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;), use these fields in query.&lt;/P&gt;

&lt;P&gt;Lets say, "Batch received successfully"=SUCCESS and  "could not be found" = FAILURE, then the query will look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sc-kofax" sourcetype="sc-kofax-sv-acis" SUCCESS=*  OR FAILURE=* | Stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:38:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170071#M48662</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-06-23T10:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data with 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170072#M48663</link>
      <description>&lt;P&gt;Thanks for answering but Given link is not working.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170072#M48663</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-06-23T10:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data with 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170073#M48664</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:51:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170073#M48664</guid>
      <dc:creator>alekksi</dc:creator>
      <dc:date>2015-06-23T10:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data with 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170074#M48665</link>
      <description>&lt;P&gt;try like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sc-kofax" sourcetype="sc-kofax-sv-acis"  | Stats count(eval("Batch received successfully")) as "count of Batch received successfully" count(eval("could not be found")) as "count of could not be found" by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170074#M48665</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-06-23T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data with 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170075#M48666</link>
      <description>&lt;P&gt;Hey .. thanks once again.. you solved my problem..&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 11:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-data-with-2-different-fields/m-p/170075#M48666</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-06-23T11:21:17Z</dc:date>
    </item>
  </channel>
</rss>

