<?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: Search Commands: analyzefields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43427#M10214</link>
    <description>&lt;P&gt;AF helps you determine how accurately each field predicts the specified field.  As an example, look at the following data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02/03/2011 01:00,st=CA,state_no=1,vote_no=1
02/03/2011 14:00,st=CA,state_no=1,vote_no=1
02/03/2011 01:00,st=MA,state_no=2,vote_no=2
02/03/2011 02:00,st=MA,state_no=2,vote_no=2
02/03/2011 07:00,st=MO,state_no=4,vote_no=1
02/03/2011 08:00,st=MO,state_no=4,vote_no=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you run the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | af classfield=vote_no
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see that there is a 100% chance (1.0) that my state (state_no) will predict my vote (vote_num), by looking at the accuracy field (acc).  You can also see that state is always declared for a vote (cocur = 1).&lt;/P&gt;

&lt;P&gt;The use case here is to determine if we can use the data to predict which state will vote for which candidate and with what accuracy we might make a prediction.  This is too small a dataset to make accurate predictions, but given a much more representative dataset, I could, with reasonable confidence, predict that a CA or MO voter will pick candidate #1.&lt;/P&gt;

&lt;P&gt;HTH&lt;BR /&gt;
ron&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2011 00:49:11 GMT</pubDate>
    <dc:creator>Ron_Naken</dc:creator>
    <dc:date>2011-02-14T00:49:11Z</dc:date>
    <item>
      <title>Search Commands: analyzefields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43426#M10213</link>
      <description>&lt;P&gt;I'm trying to wrap my head around some of the more advanced/esoteric search commands.  It seems like there's a lot of power there &lt;EM&gt;if&lt;/EM&gt; you know how to harness it (i.e. you're familiar with statistics, probability, and data mining techniques).  So, seeing as I'm very much a lay person, and the documentation is a little light sometimes, I'm hoping that someone can educate us all about this command, what it does exactly, and cases where it would be useful in the real-world.  My ultimate hope is to post further questions like this about... well, a lot of the search commands, in order to augment the docs a bit and make us all more powerful splunkers.  So, are you using this command and, if so, for what?&lt;/P&gt;

&lt;P&gt;Here's a related post: &lt;A href="http://answers.splunk.com/questions/8528/question-about-analyzefields-search-command" rel="nofollow"&gt;Question about analyzefields search command&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2011 23:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43426#M10213</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-02-13T23:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Search Commands: analyzefields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43427#M10214</link>
      <description>&lt;P&gt;AF helps you determine how accurately each field predicts the specified field.  As an example, look at the following data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02/03/2011 01:00,st=CA,state_no=1,vote_no=1
02/03/2011 14:00,st=CA,state_no=1,vote_no=1
02/03/2011 01:00,st=MA,state_no=2,vote_no=2
02/03/2011 02:00,st=MA,state_no=2,vote_no=2
02/03/2011 07:00,st=MO,state_no=4,vote_no=1
02/03/2011 08:00,st=MO,state_no=4,vote_no=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you run the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | af classfield=vote_no
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see that there is a 100% chance (1.0) that my state (state_no) will predict my vote (vote_num), by looking at the accuracy field (acc).  You can also see that state is always declared for a vote (cocur = 1).&lt;/P&gt;

&lt;P&gt;The use case here is to determine if we can use the data to predict which state will vote for which candidate and with what accuracy we might make a prediction.  This is too small a dataset to make accurate predictions, but given a much more representative dataset, I could, with reasonable confidence, predict that a CA or MO voter will pick candidate #1.&lt;/P&gt;

&lt;P&gt;HTH&lt;BR /&gt;
ron&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2011 00:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43427#M10214</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-14T00:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Search Commands: analyzefields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43428#M10215</link>
      <description>&lt;P&gt;Thanks Ron.  Good stuff!  I'm going to post some more of these, so please keep your eyes peeled and chime in if you can.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 08:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43428#M10215</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-02-17T08:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search Commands: analyzefields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43429#M10216</link>
      <description>&lt;P&gt;If you have any searches which utilize this command, please chime in and let us know what it's doing for you.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 08:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Commands-analyzefields/m-p/43429#M10216</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-02-17T08:43:52Z</dc:date>
    </item>
  </channel>
</rss>

