<?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 debugging when columns are not filled out in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/debugging-when-columns-are-not-filled-out/m-p/381132#M111505</link>
    <description>&lt;P&gt;How does one debug searches when you expect a column to be filled out yet its not? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mongo_stats 
| streamstats current=f last(count) as last_count last(_time) as time_of_last_change by namespace
| eval diffoflastchange=now()-time_of_last_change
| eval HH:MM:SS_since_last_change=tostring(diffoflastchange,"duration")
| rename count as current_count 
| fieldformat current_count=tostring(current_count,"commas") 
| table namespace current_count  HH:MM:SS_since_last_change lastChange | addcoltotals current_count | dedup namespace  | sort -current_count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for some reason the only columns I get are namespace and current count - the others are all blank but the logic to calculate the others looks right!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2018 14:26:39 GMT</pubDate>
    <dc:creator>tb5821</dc:creator>
    <dc:date>2018-11-09T14:26:39Z</dc:date>
    <item>
      <title>debugging when columns are not filled out</title>
      <link>https://community.splunk.com/t5/Splunk-Search/debugging-when-columns-are-not-filled-out/m-p/381132#M111505</link>
      <description>&lt;P&gt;How does one debug searches when you expect a column to be filled out yet its not? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mongo_stats 
| streamstats current=f last(count) as last_count last(_time) as time_of_last_change by namespace
| eval diffoflastchange=now()-time_of_last_change
| eval HH:MM:SS_since_last_change=tostring(diffoflastchange,"duration")
| rename count as current_count 
| fieldformat current_count=tostring(current_count,"commas") 
| table namespace current_count  HH:MM:SS_since_last_change lastChange | addcoltotals current_count | dedup namespace  | sort -current_count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for some reason the only columns I get are namespace and current count - the others are all blank but the logic to calculate the others looks right!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/debugging-when-columns-are-not-filled-out/m-p/381132#M111505</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2018-11-09T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: debugging when columns are not filled out</title>
      <link>https://community.splunk.com/t5/Splunk-Search/debugging-when-columns-are-not-filled-out/m-p/381133#M111506</link>
      <description>&lt;P&gt;In my experience it's best to strip down to the first piece and make sure it works then add back a piece at a time. so start with your streamstats and make sure its giving you what you expect. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=mongo_stats 
 | streamstats current=f last(count) as last_count last(_time) as time_of_last_change by namespace
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is count a field that already exists in your sourcetype?  if not you'll need a stats to do your counting before the streamstats. &lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/debugging-when-columns-are-not-filled-out/m-p/381133#M111506</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-11-09T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: debugging when columns are not filled out</title>
      <link>https://community.splunk.com/t5/Splunk-Search/debugging-when-columns-are-not-filled-out/m-p/381134#M111507</link>
      <description>&lt;P&gt;yes it exists - problem seems to be that it can't tie the eval fields to the right namespace field? &lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/debugging-when-columns-are-not-filled-out/m-p/381134#M111507</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2018-11-09T14:54:28Z</dc:date>
    </item>
  </channel>
</rss>

