<?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: Is there a way to clear down the config of an installed UF and then point it to the distribution server for new conf in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641632#M12822</link>
    <description>&lt;P&gt;When you created the template did you run&amp;nbsp;&lt;FONT face="courier new,courier"&gt;splunk clone-prep-clear-config&lt;/FONT&gt; first?&amp;nbsp; That command removes the unique identifiers for the UF so it can be replicated to multiple target systems.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Integrateauniversalforwarderontoasystemimage" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Integrateauniversalforwarderontoasystemimage&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 16:52:26 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-04-27T16:52:26Z</dc:date>
    <item>
      <title>Is there a way to clear down the config of an installed UF and then point it to the distribution server for new configs?</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641481#M12816</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;I need a way to clear down the config of an installed UF and then point it to the distribution server and pick up new/refreshed configs&lt;BR /&gt;&lt;BR /&gt;Apart from uninstalling, removing files and re-installing the UF is there a clever way of doing this&lt;/P&gt;
&lt;P&gt;(background, we've a number of hosts reporting in as the wrong hostname, and want to sort them out)&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Al&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 17:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641481#M12816</guid>
      <dc:creator>anapp</dc:creator>
      <dc:date>2023-04-26T17:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to clear down the config of an installed UF and then point it to the distribution server for new conf</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641488#M12817</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224396"&gt;@anapp&lt;/a&gt;&amp;nbsp;- Write a shell script for Linux/Unix devices and CMD/PowerShell scripts for Windows devices.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a custom App on current deployment server.&lt;/LI&gt;&lt;LI&gt;Write this script as Splunk scripted input.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;What does this script do:&lt;UL&gt;&lt;LI&gt;Update the configuration file to point to the new deployment server.&lt;/LI&gt;&lt;LI&gt;Splunk Restart.&lt;UL&gt;&lt;LI&gt;Because your script is running as a child process of Splunk it cannot restart Splunk successfully.&lt;/LI&gt;&lt;LI&gt;So you need to run it under the wrapper script. Here is an example to start with:&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash

SCRIPT=`/usr/bin/realpath $0`
SCRIPTPATH=`/usr/bin/dirname $SCRIPT`
echo "Executing $SCRIPTPATH/my_script.sh $SPLUNK_HOME" &amp;gt;&amp;amp;2
(exec /usr/bin/setsid /usr/bin/sh $SCRIPTPATH/my_script.sh $SPLUNK_HOME &amp;amp;)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;And then use wrapper script as Scripted input.&lt;/LI&gt;&lt;LI&gt;Make sure to keep the new configuration ready on the new deployment server beforehand.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly upvote if this helps!!!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 18:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641488#M12817</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-04-26T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to clear down the config of an installed UF and then point it to the distribution server for new conf</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641628#M12821</link>
      <description>&lt;P&gt;thanks - useful but not quite what I need, I should have been more specific &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We seem to have some servers built from a template whereby they are "reporting in" as the wrong servername.&amp;nbsp; I assumed I could correct the local\server.conf to correct this but that doesn't seem to fix the issue.&lt;/P&gt;&lt;P&gt;So I'm looking for as general as possible "wipe" of local config so it only knows the deployment server and starts afresh&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641628#M12821</guid>
      <dc:creator>anapp</dc:creator>
      <dc:date>2023-04-27T16:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to clear down the config of an installed UF and then point it to the distribution server for new conf</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641632#M12822</link>
      <description>&lt;P&gt;When you created the template did you run&amp;nbsp;&lt;FONT face="courier new,courier"&gt;splunk clone-prep-clear-config&lt;/FONT&gt; first?&amp;nbsp; That command removes the unique identifiers for the UF so it can be replicated to multiple target systems.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Integrateauniversalforwarderontoasystemimage" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Integrateauniversalforwarderontoasystemimage&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641632#M12822</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-27T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to clear down the config of an installed UF and then point it to the distribution server for new conf</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641633#M12823</link>
      <description>&lt;P&gt;let's just say the team responsible do that _now_ &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-way-to-clear-down-the-config-of-an-installed-UF-and/m-p/641633#M12823</guid>
      <dc:creator>anapp</dc:creator>
      <dc:date>2023-04-27T16:54:47Z</dc:date>
    </item>
  </channel>
</rss>

