<?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: What does cofilter actually do? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314470#M58888</link>
    <description>&lt;P&gt;That matches my experience.  Just to be clear, are there 9 records (8 records with "billed" and 1 with both "billed" and "disputed" as values in a single mv) or are there ten records (9 with "billed" and 1 with "disputed")?&lt;/P&gt;

&lt;P&gt;Hmmm.  Try &lt;CODE&gt;| fields user purchaseStatus&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 20:59:31 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-04-07T20:59:31Z</dc:date>
    <item>
      <title>What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314466#M58884</link>
      <description>&lt;P&gt;I ran across the &lt;CODE&gt;cofilter&lt;/CODE&gt; command and wanted to review some output results from it to see if it might be useful.  It doesn't produce any results on my test data, so maybe I don't understand its purpose.  &lt;/P&gt;

&lt;P&gt;The docs are at &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Cofilter"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Cofilter&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here's some run-anywhere test data that creates test records with an animal and a color.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval mydata="dog,green cat,green cat,orange duck,yellow donkey,green dog,green dog,green dog,blue dog,yellow dog,grey wolf,black parakeet,yellow cat,yellow cat,green dog,green donkey,green" 
| makemv mydata 
| mvexpand mydata 
| makemv delim="," mydata 
| eval animal=mvindex(mydata,0), color=mvindex(mydata,1) 
| table animal color 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... which produces records with the values as expected, but the following cofilter command has no output...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| cofilter animal color
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, what am I missing, here?&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;note - the "ask a question" question interface didn't allow &lt;CODE&gt;cofilter&lt;/CODE&gt; as a tag...  if anyone has admin rights to add a tag, please replace filter with cofilter.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 16:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314466#M58884</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-06T16:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314467#M58885</link>
      <description>&lt;P&gt;i couldn't get it to work with your own data, but I used a small sample of some billing data to see if i could get it to work. &lt;/P&gt;

&lt;P&gt;basic syntax: sourcetype=billing|cofilter user purchaseStatus&lt;/P&gt;

&lt;P&gt;table:&lt;BR /&gt;
"Item 1"    "Item 1 user count" "Item 2"    "Item 2 user count" "Pair count"&lt;BR /&gt;
billed  9   disputed    1   1&lt;/P&gt;

&lt;P&gt;i had 9 total users. so my data had 9 users that had a status "billed" and 1 with a status "disputed" and 1 time the user had both. I think the documentation isn't explaining this properly.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314467#M58885</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-06T19:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314468#M58886</link>
      <description>&lt;P&gt;Can you put a &lt;CODE&gt;table&lt;/CODE&gt; command before the &lt;CODE&gt;cofilter&lt;/CODE&gt; and see what happens?  I can't believe that I can't get any output from a simple command.&lt;/P&gt;

&lt;P&gt;BTW, did you mean you had 9 users or 11 users- 8 users with just billed and 1 with billed and disputed, or 9 with just billed, 1 with just disputed, and 1 with both?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 20:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314468#M58886</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-07T20:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314469#M58887</link>
      <description>&lt;P&gt;i have 9 distinct users, they all had a billing status, one had a dispute status, and one had both (a dispute is like a return). It looked like it split it out by saying "Here are how many users had this value, here are how many had this other value, and here are how many had both values". &lt;/P&gt;

&lt;P&gt;if I put &lt;CODE&gt;|table user purchaseStatus&lt;/CODE&gt; before my &lt;CODE&gt;cofilter&lt;/CODE&gt; command, it doesn't work. Bizarre. I think a ticket for enhanced documentation would help.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 20:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314469#M58887</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-07T20:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314470#M58888</link>
      <description>&lt;P&gt;That matches my experience.  Just to be clear, are there 9 records (8 records with "billed" and 1 with both "billed" and "disputed" as values in a single mv) or are there ten records (9 with "billed" and 1 with "disputed")?&lt;/P&gt;

&lt;P&gt;Hmmm.  Try &lt;CODE&gt;| fields user purchaseStatus&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 20:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314470#M58888</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-07T20:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314471#M58889</link>
      <description>&lt;P&gt;It may be somewhat related to &lt;CODE&gt;contingency&lt;/CODE&gt;:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Contingency"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Contingency&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try adding this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| contingency animal color
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Apr 2017 19:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314471#M58889</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-08T19:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314472#M58890</link>
      <description>&lt;P&gt;You should post a comment to the docs page that it is not clear and reference the URL for this question.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 19:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314472#M58890</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-08T19:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: What does cofilter actually do?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314473#M58891</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| fields user purchaseStatus works. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my data isn't MV, so there are 9 billed and 1 disputed. &lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 11:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-does-cofilter-actually-do/m-p/314473#M58891</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-10T11:48:44Z</dc:date>
    </item>
  </channel>
</rss>

