<?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: How to insert dummy data into the first few entries of a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629615#M218727</link>
    <description>&lt;P&gt;If Field_B is a multi-value field then you could use &lt;FONT face="courier new,courier"&gt;mvappend&lt;/FONT&gt; to add the values.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Field_B = mvappend("DUMMY1", "DUMMY2", Field_B)&lt;/LI-CODE&gt;&lt;P&gt;If Field_B is not multi-valued then please share the query that produced the results so we can tell you how to accomplish your goal.&lt;/P&gt;</description>
    <pubDate>Sat, 04 Feb 2023 18:07:00 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-02-04T18:07:00Z</dc:date>
    <item>
      <title>How to insert dummy data into the first few entries of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629608#M218722</link>
      <description>&lt;P&gt;Here is the original table here, but I need to put some dummy data into Field_B&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Time&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Filed_A&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Field_B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Tom&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;20&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Smith&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;3&lt;/TD&gt;
&lt;TD height="25px"&gt;30&lt;/TD&gt;
&lt;TD height="25px"&gt;Will&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;4&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;40&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Sam&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Like this,&lt;/P&gt;
&lt;TABLE border="1" width="100.12777688345139%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Time&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Filed_A&lt;/TD&gt;
&lt;TD width="33.46203346203347%" height="25px"&gt;Field_B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;
&lt;TD width="33.46203346203347%"&gt;DUMMY1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;20&lt;/TD&gt;
&lt;TD width="33.46203346203347%"&gt;DUMMY2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;30&lt;/TD&gt;
&lt;TD width="33.46203346203347%" height="25px"&gt;Tom&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;4&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;40&lt;/TD&gt;
&lt;TD width="33.46203346203347%" height="25px"&gt;Smith&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I want to expect the order of Filed_B will be : DUMMY1,DUMMY2,Tom,Smith,Will,Sam...&lt;BR /&gt;Please advise me on how to write the eval command to do this...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 00:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629608#M218722</guid>
      <dc:creator>splunker-0625</dc:creator>
      <dc:date>2023-02-06T00:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert dummy data into the first few entries of a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629615#M218727</link>
      <description>&lt;P&gt;If Field_B is a multi-value field then you could use &lt;FONT face="courier new,courier"&gt;mvappend&lt;/FONT&gt; to add the values.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Field_B = mvappend("DUMMY1", "DUMMY2", Field_B)&lt;/LI-CODE&gt;&lt;P&gt;If Field_B is not multi-valued then please share the query that produced the results so we can tell you how to accomplish your goal.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 18:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629615#M218727</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-04T18:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert dummy data into the first few entries of a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629640#M218739</link>
      <description>&lt;P&gt;The SPL as below, I store your previous table in a lookup table test.csv&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup test.csv
| sort Filed_A
| autoregress Field_B as newfield p=2
| fields Time Filed_A newfield
| streamstats count as num
| foreach newfield [| eval &amp;lt;&amp;gt;=if(isnull(newfield),"DUMMY".num,&amp;lt;&amp;gt;)]
| rename newfield as Field_B
| fields Time Filed_A Field_B&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="liuce1_0-1675586193140.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23719iE52A3CB790C7C3F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="liuce1_0-1675586193140.png" alt="liuce1_0-1675586193140.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my answer can help you ,please kindly vote it .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 15:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629640#M218739</guid>
      <dc:creator>liuce1</dc:creator>
      <dc:date>2023-02-05T15:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert dummy data into the first few entries of a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629660#M218751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;liuce1,&lt;BR /&gt;&lt;/SPAN&gt;Thank you for your reply&lt;BR /&gt;Your idea that is using autoregress, seems working for me.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I could make put some dummy data for my targeting column with a simple procedure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 01:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-insert-dummy-data-into-the-first-few-entries-of-a-field/m-p/629660#M218751</guid>
      <dc:creator>splunker-0625</dc:creator>
      <dc:date>2023-02-06T01:46:04Z</dc:date>
    </item>
  </channel>
</rss>

