<?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: Copy logs from one index to another with use same host information in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567359#M197708</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for replying my question and helping.&lt;/P&gt;&lt;P&gt;I have variable hosts so I ran the command which was your mentioned. But&amp;nbsp; I do not see the host and sourcetype fields in the new index and also orig_host field.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 07:33:33 GMT</pubDate>
    <dc:creator>MesutUgurlu</dc:creator>
    <dc:date>2021-09-17T07:33:33Z</dc:date>
    <item>
      <title>Copy logs from one index to another with use same host information</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567352#M197704</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to copy some logs in one index to another index with the same host information. I use collect command to do this process. But when i copy, i see that all host information is the same and write search head ip address. So I cant search by looking host information. How can I do it? Can you help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 06:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567352#M197704</guid>
      <dc:creator>MesutUgurlu</dc:creator>
      <dc:date>2021-09-17T06:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copy logs from one index to another with use same host information</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567355#M197706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238584"&gt;@MesutUgurlu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the host value is fixed, you could add the "host" option in the search you're using to copy events from indexes, for more infos see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Collect" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If instead it's variable,&amp;nbsp;you could modify you search in something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| table _time host sourcetype _raw
| collect index=your_new_index&lt;/LI-CODE&gt;&lt;P&gt;in this way you'll be able to use the host field in searches but not using the host field, but the "orig_host" field.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 07:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567355#M197706</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-09-17T07:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copy logs from one index to another with use same host information</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567359#M197708</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for replying my question and helping.&lt;/P&gt;&lt;P&gt;I have variable hosts so I ran the command which was your mentioned. But&amp;nbsp; I do not see the host and sourcetype fields in the new index and also orig_host field.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 07:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567359#M197708</guid>
      <dc:creator>MesutUgurlu</dc:creator>
      <dc:date>2021-09-17T07:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copy logs from one index to another with use same host information</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567360#M197709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238584"&gt;@MesutUgurlu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share one or two events in the new index generated by the search I hinted?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 07:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-logs-from-one-index-to-another-with-use-same-host/m-p/567360#M197709</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-09-17T07:36:31Z</dc:date>
    </item>
  </channel>
</rss>

