<?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: map over makecontinuous not working ... in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371430#M109306</link>
    <description>&lt;P&gt;are you using &lt;CODE&gt;stats&lt;/CODE&gt; or &lt;CODE&gt;chart&lt;/CODE&gt; before the &lt;CODE&gt;appendpipe&lt;/CODE&gt;?&lt;BR /&gt;
if you have duplicate &lt;CODE&gt;day&lt;/CODE&gt; values, &lt;CODE&gt;makecontinuous&lt;/CODE&gt; will not work. &lt;/P&gt;

&lt;P&gt;can you try (edit chart syntax to fit your needs)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|chart count(device_id) as devices by day device_type
|makecontinuous day
|fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Nov 2017 12:50:19 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-11-16T12:50:19Z</dc:date>
    <item>
      <title>map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371424#M109300</link>
      <description>&lt;P&gt;I'm trying to fill in the gaps in a set of data, where there are different gaps for each of the types.&lt;/P&gt;

&lt;P&gt;I've tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | appendpipe [ stats FIRST(device_id) AS device_id BY day, device_type | map maxsearches=20 search="where device_type=\"$device_type$\" | makecontinuous day span=1 | where ISNULL(device_type) | eval device_type=\"$device_type$\", device_id=\"$device_id$\" " ] ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I get no results from that.  I've tried multiple variants of this, with &amp;amp; without quotes, with &amp;amp; without the &lt;CODE&gt;where&lt;/CODE&gt;s.  All give me nothing ...&lt;BR /&gt;
The &lt;CODE&gt;makecontinuous&lt;/CODE&gt; on its own does create the missing entries, but without the relevant device_type values, and without multiple events (one for each missing type) on each day.&lt;/P&gt;

&lt;P&gt;Any advice / comment / better way of doing this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 15:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371424#M109300</guid>
      <dc:creator>JeToJedno</dc:creator>
      <dc:date>2017-11-15T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371425#M109301</link>
      <description>&lt;P&gt;what is before the appendpipe?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 20:57:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371425#M109301</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-11-15T20:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371426#M109302</link>
      <description>&lt;P&gt;I'm not sure what you believe your code is supposed to do.&lt;/P&gt;

&lt;P&gt;The first thing I would try is to put a pipe before &lt;CODE&gt;stats&lt;/CODE&gt;.  &lt;/P&gt;

&lt;P&gt;The second thing would be to turn the search from the &lt;CODE&gt;map search=&lt;/CODE&gt; into a valid search, by at the very least starting it with the keyword &lt;CODE&gt;search&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Before I did any of that, though, I would describe here in plain English what you are trying to achieve and see whether or not the community is able to give you the desired syntax. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 21:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371426#M109302</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-11-15T21:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371427#M109303</link>
      <description>&lt;P&gt;a search that summarises log entries by day and device_type, giving active and concurrent active, along with concurrent registrations (credential validity is renewed daily and are valid 7 days from last use).&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 10:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371427#M109303</guid>
      <dc:creator>JeToJedno</dc:creator>
      <dc:date>2017-11-16T10:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371428#M109304</link>
      <description>&lt;P&gt;What I'm trying to do is fill in the gaps in the results of the previous search, which summarises log entries.  On some days, for some device types, there are no entries so there are gaps ... and I'd like those filled in, for each device type.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 10:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371428#M109304</guid>
      <dc:creator>JeToJedno</dc:creator>
      <dc:date>2017-11-16T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371429#M109305</link>
      <description>&lt;P&gt;The code is intended to fill in gaps in the results from the previous search.  That produces results by day and device_type, but not all days have results for all device types.&lt;BR /&gt;
The gaps make some graphs and subsequent analyses perform strangely.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 10:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371429#M109305</guid>
      <dc:creator>JeToJedno</dc:creator>
      <dc:date>2017-11-16T10:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371430#M109306</link>
      <description>&lt;P&gt;are you using &lt;CODE&gt;stats&lt;/CODE&gt; or &lt;CODE&gt;chart&lt;/CODE&gt; before the &lt;CODE&gt;appendpipe&lt;/CODE&gt;?&lt;BR /&gt;
if you have duplicate &lt;CODE&gt;day&lt;/CODE&gt; values, &lt;CODE&gt;makecontinuous&lt;/CODE&gt; will not work. &lt;/P&gt;

&lt;P&gt;can you try (edit chart syntax to fit your needs)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|chart count(device_id) as devices by day device_type
|makecontinuous day
|fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 12:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371430#M109306</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-11-16T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: map over makecontinuous not working ...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371431#M109307</link>
      <description>&lt;P&gt;Thanks.  I was aware of that deficiency in &lt;CODE&gt;makecontinuous&lt;/CODE&gt; and trying to avoid it.  I can make it work by adding multiple &lt;CODE&gt;appendpipe&lt;/CODE&gt;s with &lt;CODE&gt;makecontinuous&lt;/CODE&gt;, one for each device_type, but that needs editing every time that list of device types changes.  e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| appendpipe [ where device_type=1 | makecontinuous day | where ISNULL(device_type) | eval device_type=1 ]
| appendpipe [ where device_type=2 | makecontinuous day | where ISNULL(device_type) | eval device_type=2 ]
elc ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 13:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-over-makecontinuous-not-working/m-p/371431#M109307</guid>
      <dc:creator>JeToJedno</dc:creator>
      <dc:date>2017-11-16T13:28:27Z</dc:date>
    </item>
  </channel>
</rss>

