<?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 revert backup for Lookup Editor limit? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/628275#M51515</link>
    <description>&lt;P&gt;You can also do something like this in order to delete "old" backups in the folder after some time. It's a quick fix that is working with the 3.6.0 version. You have to place piece of code at the end of the function "backup_lookup_file" (before the return dst) in the &lt;SPAN class=""&gt;"lookup_backups.py&lt;/SPAN&gt;" file &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;           # Remove backup files that are "old"

            list_of_files = os.listdir(backup_directory)
            current_time = time.time()
            for i in list_of_files:
                file_location = backup_directory + "/" + i
                file_time = os.stat(file_location).st_mtime

                if(file_time &amp;lt; current_time - 86400 * 5):
                    os.remove(file_location)
                    self.logger.info('Removing lookup file="%s" from backup folder="%s" because max time excedeed', i, backup_directory)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 13:05:42 GMT</pubDate>
    <dc:creator>vince135</dc:creator>
    <dc:date>2023-01-25T13:05:42Z</dc:date>
    <item>
      <title>How to revert backup for lookup editor limit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/519854#M34913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm currently trying to modify the lookup editor app,&lt;/P&gt;
&lt;P&gt;But i'm having trouble on limiting previous version, i did it through CSS and HTML.&lt;/P&gt;
&lt;P&gt;But the files are still located at the folder. How can i limit the revert version to 5 and delete the older versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/519854#M34913</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2023-01-25T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Editor limit the revert backup</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/521665#M35173</link>
      <description>&lt;P&gt;i have solve the issue , with the help of my colleague.&lt;/P&gt;&lt;P&gt;It was on "lookup_backups.py"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jadengoho_0-1601258937379.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10991i504CB352DF88DF7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jadengoho_0-1601258937379.png" alt="jadengoho_0-1601258937379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 02:09:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/521665#M35173</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-09-28T02:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Editor limit the revert backup</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/599461#M49184</link>
      <description>&lt;P&gt;With the changes in v3.6.0 of the app in the past month, is this still valid?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 16:11:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/599461#M49184</guid>
      <dc:creator>DaClyde</dc:creator>
      <dc:date>2022-05-26T16:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to revert backup for Lookup Editor limit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/628275#M51515</link>
      <description>&lt;P&gt;You can also do something like this in order to delete "old" backups in the folder after some time. It's a quick fix that is working with the 3.6.0 version. You have to place piece of code at the end of the function "backup_lookup_file" (before the return dst) in the &lt;SPAN class=""&gt;"lookup_backups.py&lt;/SPAN&gt;" file &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;           # Remove backup files that are "old"

            list_of_files = os.listdir(backup_directory)
            current_time = time.time()
            for i in list_of_files:
                file_location = backup_directory + "/" + i
                file_time = os.stat(file_location).st_mtime

                if(file_time &amp;lt; current_time - 86400 * 5):
                    os.remove(file_location)
                    self.logger.info('Removing lookup file="%s" from backup folder="%s" because max time excedeed', i, backup_directory)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 13:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/628275#M51515</guid>
      <dc:creator>vince135</dc:creator>
      <dc:date>2023-01-25T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to revert backup for Lookup Editor limit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/680376#M55730</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is this still working with 4.0.2 version of the app ?&lt;BR /&gt;I made the change, but unfortunately, nothing happens. How do you trigger the deletion? Restart Splunk? Unfortunately, I can no longer make any backups because I get an error saying that I have reached the size limit for backups.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 09:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-revert-backup-for-lookup-editor-limit/m-p/680376#M55730</guid>
      <dc:creator>MCH2018</dc:creator>
      <dc:date>2024-03-12T09:39:06Z</dc:date>
    </item>
  </channel>
</rss>

