<?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: incorrect host names in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90154#M18704</link>
    <description>&lt;P&gt;Yes you can, with a userid that has can_delete privilege (admin does not have that by default).&lt;BR /&gt;
Construct a search that returns all events you want deleted, make sure the result is what you expect and add "| delete" once you are sure.&lt;BR /&gt;
Note that events will not be deleted physically, so if you want to reclaim the disk space immediately, I think you would have to delete and recreate the index and re-index everything.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2013 00:17:09 GMT</pubDate>
    <dc:creator>stefandagerman</dc:creator>
    <dc:date>2013-04-11T00:17:09Z</dc:date>
    <item>
      <title>incorrect host names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90149#M18699</link>
      <description>&lt;P&gt;I extracted the host names wrong, and now I have extra names in my Splunk. Example: Server01 vs. Server1   and   Server02 vs. Server2, etc.&lt;/P&gt;

&lt;P&gt;What's the best way to fix this so I only have Server01, Server02, etc.? Delete? Rename? Any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 18:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90149#M18699</guid>
      <dc:creator>lain179</dc:creator>
      <dc:date>2013-04-10T18:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect host names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90150#M18700</link>
      <description>&lt;P&gt;You cannot rename the host field, once it's been indexed. However, you can dynamically change it as part of the search for the duration of that search. (say you indexed &lt;CODE&gt;server1.domain.com&lt;/CODE&gt;, buy you just wanted the &lt;CODE&gt;server1&lt;/CODE&gt;)&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | rex field=host "(?&amp;lt;host&amp;gt;[^.]+)" | ...&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Not really neat. Will probably have effects on drill-downs etc, where the new host field value won't match indexed data....Other than that, wait until the data ages out of your index.. or delete and re-index.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 20:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90150#M18700</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-10T20:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect host names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90151#M18701</link>
      <description>&lt;P&gt;If you don't want to or cannot reindex your data, I would probably use tags or create a new field with an appropriate RegEx that normalizes your server names. You'd then use the tag or new field name in your searches rather than the original server name.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 20:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90151#M18701</guid>
      <dc:creator>stefandagerman</dc:creator>
      <dc:date>2013-04-10T20:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect host names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90152#M18702</link>
      <description>&lt;P&gt;Note that that new field won't be indexed like the 'host' field is.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 20:38:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90152#M18702</guid>
      <dc:creator>stefandagerman</dc:creator>
      <dc:date>2013-04-10T20:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect host names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90153#M18703</link>
      <description>&lt;P&gt;I don't need those logs with wrong host names as I re-import the data with correct host names. So can I just delete them? Is there a way to selectively delete indexed data?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 23:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90153#M18703</guid>
      <dc:creator>lain179</dc:creator>
      <dc:date>2013-04-10T23:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect host names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90154#M18704</link>
      <description>&lt;P&gt;Yes you can, with a userid that has can_delete privilege (admin does not have that by default).&lt;BR /&gt;
Construct a search that returns all events you want deleted, make sure the result is what you expect and add "| delete" once you are sure.&lt;BR /&gt;
Note that events will not be deleted physically, so if you want to reclaim the disk space immediately, I think you would have to delete and recreate the index and re-index everything.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2013 00:17:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90154#M18704</guid>
      <dc:creator>stefandagerman</dc:creator>
      <dc:date>2013-04-11T00:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect host names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90155#M18705</link>
      <description>&lt;P&gt;Ok, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 22:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/incorrect-host-names/m-p/90155#M18705</guid>
      <dc:creator>lain179</dc:creator>
      <dc:date>2013-04-12T22:15:32Z</dc:date>
    </item>
  </channel>
</rss>

