<?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 data correctly with collect command (include fields and values)? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-insert-data-correctly-with-collect-command-include-fields/m-p/616555#M14157</link>
    <description>&lt;P&gt;Make sure you define all the fields and values to be indexed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;base search&amp;gt;
| table field1 field2 field3 ... 
| collect index=&amp;lt;new_index&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 10 Oct 2022 16:40:44 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-10-10T16:40:44Z</dc:date>
    <item>
      <title>How to insert data correctly with collect command (include fields and values)?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-insert-data-correctly-with-collect-command-include-fields/m-p/616526#M14155</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I'm pretty new to splunk and I have a question.&lt;/P&gt;
&lt;P&gt;I am trying to send information from one index to another with the "collect" command.&lt;/P&gt;
&lt;P&gt;The problem is that when I send the events to the new index the &lt;STRONG&gt;field&lt;/STRONG&gt; and &lt;STRONG&gt;value&lt;/STRONG&gt; &lt;STRONG&gt;do not appear&lt;/STRONG&gt; as in the old index (they disappear).&lt;/P&gt;
&lt;P&gt;I am using this sentence:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;index = legacy sourcetype = old_legacy | collect index= mew_legacy&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in the new index&amp;nbsp;i'm not receiving the &lt;STRONG&gt;FIELD&lt;/STRONG&gt;-&amp;gt;&lt;STRONG&gt;VALUE&lt;/STRONG&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 14:08:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-insert-data-correctly-with-collect-command-include-fields/m-p/616526#M14155</guid>
      <dc:creator>jordilazo</dc:creator>
      <dc:date>2022-10-10T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data correctly with collect command (include fields and values)?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-insert-data-correctly-with-collect-command-include-fields/m-p/616555#M14157</link>
      <description>&lt;P&gt;Make sure you define all the fields and values to be indexed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;base search&amp;gt;
| table field1 field2 field3 ... 
| collect index=&amp;lt;new_index&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Oct 2022 16:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-insert-data-correctly-with-collect-command-include-fields/m-p/616555#M14157</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-10T16:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data correctly with collect command (include fields and values)?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-insert-data-correctly-with-collect-command-include-fields/m-p/616634#M14172</link>
      <description>&lt;P&gt;Thank you. That was what was missing&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 09:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-insert-data-correctly-with-collect-command-include-fields/m-p/616634#M14172</guid>
      <dc:creator>jordilazo</dc:creator>
      <dc:date>2022-10-11T09:18:01Z</dc:date>
    </item>
  </channel>
</rss>

