<?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: Repeat index and host time in tablerow in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505877#M141501</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval r=mvrange(1,15)
| mvexpand r
| eval printedA_epoch=now() - (random() % 604800)
| eval printedB_epoch=now() - (random() % 604800)
| eval indtime=now()
| eval host="XP03"
| stats values(printedA_epoch) as printedA_epoch values(printedB_epoch) as printedB_epoch by host indtime
| table host printedA_epoch printedB_epoch indtime
| eval comment="Your data is created up to here - so now duplicate host and indtime as required"
| eval tmp=mvzip(printedA_epoch, printedB_epoch, ",")
| fields - printedA_epoch printedB_epoch comment
| mvexpand tmp
| rex field=tmp "(?&amp;lt;printedA_epoch&amp;gt;\d+),(?&amp;lt;printedB_epoch&amp;gt;\d+)"
| fields - tmp
| stats list(*) as *&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 24 Jun 2020 06:09:28 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-06-24T06:09:28Z</dc:date>
    <item>
      <title>Repeat index and host time in tablerow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505865#M141491</link>
      <description>&lt;P&gt;Hi, i need index time and host time to repeat for each data for host, printedA_epoch &amp;amp; printedb_epoch, how can i achieve it&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karunagaraprabh_0-1592968527889.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9318i2612F1B4A3023E35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karunagaraprabh_0-1592968527889.png" alt="karunagaraprabh_0-1592968527889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karuna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 03:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505865#M141491</guid>
      <dc:creator>karunagaraprabh</dc:creator>
      <dc:date>2020-06-24T03:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat index and host time in tablerow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505868#M141493</link>
      <description>&lt;P&gt;If you have Splunk 8 (for mvmap) you can do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval r=mvrange(1,15)
| mvexpand r
| eval printedA_epoch=now() - (random() % 604800)
| eval printedB_epoch=now() - (random() % 604800)
| eval indtime=now()
| eval host="XP03"
| stats values(printedA_epoch) as printedA_epoch values(printedB_epoch) as printedB_epoch by host indtime
| table host printedA_epoch printedB_epoch indtime
| eval comment="Your data is created up to here - so now duplicate host and indtime as required"
| eval h=mvrange(1,mvcount(printedA_epoch) + 1)
| eval host=mvmap(h,host), indtime=mvmap(h,indtime)
| fields - h comment&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 04:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505868#M141493</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-06-24T04:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat index and host time in tablerow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505872#M141496</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp; but am using splunk 7.0.1 where&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;'mvmap'&amp;nbsp; function is not supported or undefined, could you please provide me an alternative command.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505872#M141496</guid>
      <dc:creator>karunagaraprabh</dc:creator>
      <dc:date>2020-06-24T06:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat index and host time in tablerow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505877#M141501</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval r=mvrange(1,15)
| mvexpand r
| eval printedA_epoch=now() - (random() % 604800)
| eval printedB_epoch=now() - (random() % 604800)
| eval indtime=now()
| eval host="XP03"
| stats values(printedA_epoch) as printedA_epoch values(printedB_epoch) as printedB_epoch by host indtime
| table host printedA_epoch printedB_epoch indtime
| eval comment="Your data is created up to here - so now duplicate host and indtime as required"
| eval tmp=mvzip(printedA_epoch, printedB_epoch, ",")
| fields - printedA_epoch printedB_epoch comment
| mvexpand tmp
| rex field=tmp "(?&amp;lt;printedA_epoch&amp;gt;\d+),(?&amp;lt;printedB_epoch&amp;gt;\d+)"
| fields - tmp
| stats list(*) as *&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505877#M141501</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-06-24T06:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat index and host time in tablerow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505881#M141504</link>
      <description>&lt;P&gt;Thanks for your valuable time&lt;BR /&gt;&lt;BR /&gt;| stats list(*) as * it displays all my field in the indexed data i have to display only limited columns&lt;BR /&gt;&lt;BR /&gt;CustomerjobId,printedA_epoch,printedB_epoch,indexdatetime&lt;BR /&gt;&lt;BR /&gt;as i have to do difference of A and B epoc with indexedtime epoc&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505881#M141504</guid>
      <dc:creator>karunagaraprabh</dc:creator>
      <dc:date>2020-06-24T06:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat index and host time in tablerow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505882#M141505</link>
      <description>&lt;P&gt;Replace the list(*) as * with&lt;/P&gt;&lt;P&gt;list(a) as a list(b) as b list(c) as c&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the columns you need&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505882#M141505</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-06-24T06:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat index and host time in tablerow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505915#M141518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;, really appreciate your multiple solution, after implementing am getting Aepoch vales as 0000 instead of its value..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karunagaraprabh_0-1592986505291.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9320i2264E157B4DEFA2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karunagaraprabh_0-1592986505291.png" alt="karunagaraprabh_0-1592986505291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karuna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 09:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Repeat-index-and-host-time-in-tablerow/m-p/505915#M141518</guid>
      <dc:creator>karunagaraprabh</dc:creator>
      <dc:date>2020-06-24T09:03:37Z</dc:date>
    </item>
  </channel>
</rss>

