<?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: Fill empty fields backwards with streamstats in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661380#M228346</link>
    <description>&lt;P&gt;like? Could you please provide an example?&lt;BR /&gt;If I will use &lt;STRONG&gt;stats&lt;/STRONG&gt; it will merge the 4 events into 1 or not fill the empty ones / document type&lt;BR /&gt;The main key fields are &lt;STRONG&gt;document_number&lt;/STRONG&gt; and &lt;STRONG&gt;document_type&lt;/STRONG&gt; which are required further.&lt;BR /&gt;So with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;| stats max(&lt;EM&gt;timestamp1&lt;/EM&gt;) as &lt;EM&gt;timestamp1, max(timestamp2) as timestamp2, ...&lt;/EM&gt;&amp;nbsp;by&amp;nbsp;&lt;STRONG&gt;document_number&lt;BR /&gt;&lt;/STRONG&gt;will unify the events by &lt;STRONG&gt;document_number&lt;/STRONG&gt; which is not what I would like to achieve as there are many other fields required, which are not shown in the example.&lt;/LI&gt;&lt;LI&gt;| stats max(&lt;EM&gt;timestamp1&lt;/EM&gt;) as &lt;EM&gt;timestamp1, max(timestamp2) as timestamp2, ..&lt;/EM&gt;&amp;nbsp;by&amp;nbsp;&lt;STRONG&gt;document_number,&amp;nbsp;document_type&lt;BR /&gt;&lt;/STRONG&gt;will do nothing as will select the event from itself and leave the empty fields empty.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;P.S.: sorry I forgot to add the &lt;STRONG&gt;datetime_type&lt;/STRONG&gt; to the example pictures, will add them.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 13:58:35 GMT</pubDate>
    <dc:creator>Kristian_86</dc:creator>
    <dc:date>2023-10-19T13:58:35Z</dc:date>
    <item>
      <title>Fill empty fields backwards with streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661369#M228339</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have the following issue:&lt;BR /&gt;Have many events with different &lt;STRONG&gt;document_number&lt;/STRONG&gt;+&lt;STRONG&gt;datetime_type&lt;/STRONG&gt;, which have a field (&lt;STRONG&gt;started_on&lt;/STRONG&gt;).&lt;BR /&gt;There is always &lt;STRONG&gt;4 different types / document_number.&lt;BR /&gt;&lt;/STRONG&gt;Then 4 new timestamp fields are evaluated by the type and the timestamp, so each event will have 1 new filled timestamp in a different field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kristian_86_1-1697724054777.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27658iBC17DDF8CCA12E6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kristian_86_1-1697724054777.png" alt="Kristian_86_1-1697724054777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I need to fill the empty ones from the evaluated ones for the same &lt;STRONG&gt;document_number&lt;/STRONG&gt;.&lt;BR /&gt;With &lt;STRONG&gt;streamstats&lt;/STRONG&gt; I was able to fill them further (after found), but not backwards.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kristian_86_3-1697719333839.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27656i892D1B25AD08CD74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kristian_86_3-1697719333839.png" alt="Kristian_86_3-1697719333839.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kristian_86_0-1697724019797.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27657i6D78AD47AF64D7A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kristian_86_0-1697724019797.png" alt="Kristian_86_0-1697724019797.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible somehow?&lt;BR /&gt;Or only if I do &lt;STRONG&gt;| reverse&lt;/STRONG&gt; and apply &lt;STRONG&gt;streamstats&lt;/STRONG&gt; again?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 14:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661369#M228339</guid>
      <dc:creator>Kristian_86</dc:creator>
      <dc:date>2023-10-19T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fill empty fields backwards with streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661376#M228344</link>
      <description>&lt;P&gt;Why not just use stats (instead of streamstats)?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 13:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661376#M228344</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-10-19T13:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fill empty fields backwards with streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661380#M228346</link>
      <description>&lt;P&gt;like? Could you please provide an example?&lt;BR /&gt;If I will use &lt;STRONG&gt;stats&lt;/STRONG&gt; it will merge the 4 events into 1 or not fill the empty ones / document type&lt;BR /&gt;The main key fields are &lt;STRONG&gt;document_number&lt;/STRONG&gt; and &lt;STRONG&gt;document_type&lt;/STRONG&gt; which are required further.&lt;BR /&gt;So with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;| stats max(&lt;EM&gt;timestamp1&lt;/EM&gt;) as &lt;EM&gt;timestamp1, max(timestamp2) as timestamp2, ...&lt;/EM&gt;&amp;nbsp;by&amp;nbsp;&lt;STRONG&gt;document_number&lt;BR /&gt;&lt;/STRONG&gt;will unify the events by &lt;STRONG&gt;document_number&lt;/STRONG&gt; which is not what I would like to achieve as there are many other fields required, which are not shown in the example.&lt;/LI&gt;&lt;LI&gt;| stats max(&lt;EM&gt;timestamp1&lt;/EM&gt;) as &lt;EM&gt;timestamp1, max(timestamp2) as timestamp2, ..&lt;/EM&gt;&amp;nbsp;by&amp;nbsp;&lt;STRONG&gt;document_number,&amp;nbsp;document_type&lt;BR /&gt;&lt;/STRONG&gt;will do nothing as will select the event from itself and leave the empty fields empty.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;P.S.: sorry I forgot to add the &lt;STRONG&gt;datetime_type&lt;/STRONG&gt; to the example pictures, will add them.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 13:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661380#M228346</guid>
      <dc:creator>Kristian_86</dc:creator>
      <dc:date>2023-10-19T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fill empty fields backwards with streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661384#M228347</link>
      <description>&lt;P&gt;Try eventstats instead of stats if you want to keep the original events&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 14:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661384#M228347</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-10-19T14:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fill empty fields backwards with streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661386#M228348</link>
      <description>&lt;P&gt;Working as expected, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kristian_86_0-1697724179531.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27659i2F054CB8AB09A799/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kristian_86_0-1697724179531.png" alt="Kristian_86_0-1697724179531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 19:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fill-empty-fields-backwards-with-streamstats/m-p/661386#M228348</guid>
      <dc:creator>Kristian_86</dc:creator>
      <dc:date>2023-10-19T19:22:29Z</dc:date>
    </item>
  </channel>
</rss>

