<?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: Serching Development Log Files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Serching-Development-Log-Files/m-p/61516#M180158</link>
    <description>&lt;P&gt;Here is a search time field extraction using the rex command.You could also declare this in props.conf using EXTRACT.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Test1: Total: 3 Succeeded: 3 Failed: 0
Test2: Total: 5 Succeeded: 4 Failed: 1
Test3: Total: 3 Succeeded: 3 Failed: 0

... | rex field=_raw "(?&amp;lt;test_id&amp;gt;\w+):\s\w+:\s(?&amp;lt;total_count&amp;gt;\d+)\s\w+:\s(?&amp;lt;success_count&amp;gt;\d+)\s\w+:\s(?&amp;lt;fail_count&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then, with the fields extracted, there are many different potential searches , here are a couple to get you started.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;"how many time the whole deployment test succeeded"&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats sum(total_count) as "Total Tests"  sum(success_count) as "Succeeded"  sum(fail_count) as "Failed"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;"If it failed which test it failed on"&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| where fail_count &amp;gt; 0 | stats sum(fail_count) as "Failed Tests" by test_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 May 2012 01:17:54 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2012-05-29T01:17:54Z</dc:date>
    <item>
      <title>Serching Development Log Files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Serching-Development-Log-Files/m-p/61515#M180157</link>
      <description>&lt;P&gt;So I am brand new to Splunk. I just finished setting up a Ubuntu server for indexing and have got all my forwarders working just fine. When it came to indexing a log file from a development test I get stuck on how to search for what I want. For example the log files look something like this:&lt;/P&gt;

&lt;P&gt;Test1:          Total: 3    Succeeded: 3        Failed: 0&lt;BR /&gt;&lt;BR /&gt;
Test2:      Total: 5    Succeeded: 4        Failed: 1&lt;BR /&gt;&lt;BR /&gt;
Test3:      Total: 3    Succeeded: 3        Failed: 0&lt;/P&gt;

&lt;P&gt;I would like to be able to know how many time the whole deployment test succeeded. If it failed which test it failed on, and graph the results. I have had difficulties trying to get the numbers after Total, Succeeded, and Failed in to integers I have tried &lt;EM&gt;tonumber&lt;/EM&gt; and I think it has worked. But after that I am not sure how to get it to reference the Test number it goes with&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2012 12:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Serching-Development-Log-Files/m-p/61515#M180157</guid>
      <dc:creator>sjjohns</dc:creator>
      <dc:date>2012-05-28T12:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Serching Development Log Files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Serching-Development-Log-Files/m-p/61516#M180158</link>
      <description>&lt;P&gt;Here is a search time field extraction using the rex command.You could also declare this in props.conf using EXTRACT.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Test1: Total: 3 Succeeded: 3 Failed: 0
Test2: Total: 5 Succeeded: 4 Failed: 1
Test3: Total: 3 Succeeded: 3 Failed: 0

... | rex field=_raw "(?&amp;lt;test_id&amp;gt;\w+):\s\w+:\s(?&amp;lt;total_count&amp;gt;\d+)\s\w+:\s(?&amp;lt;success_count&amp;gt;\d+)\s\w+:\s(?&amp;lt;fail_count&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then, with the fields extracted, there are many different potential searches , here are a couple to get you started.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;"how many time the whole deployment test succeeded"&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats sum(total_count) as "Total Tests"  sum(success_count) as "Succeeded"  sum(fail_count) as "Failed"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;"If it failed which test it failed on"&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| where fail_count &amp;gt; 0 | stats sum(fail_count) as "Failed Tests" by test_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 May 2012 01:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Serching-Development-Log-Files/m-p/61516#M180158</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-05-29T01:17:54Z</dc:date>
    </item>
  </channel>
</rss>

