<?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 Help for retrieving a lookup date and to display it in a dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465743#M45584</link>
    <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;I have a csv file in my lookup folder (host.csv) and I wonder if its possible to retrieve the last modification file of this file and to display it in a panle title?&lt;BR /&gt;
thanks for your help&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 11:21:31 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2019-10-24T11:21:31Z</dc:date>
    <item>
      <title>Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465743#M45584</link>
      <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;I have a csv file in my lookup folder (host.csv) and I wonder if its possible to retrieve the last modification file of this file and to display it in a panle title?&lt;BR /&gt;
thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 11:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465743#M45584</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-24T11:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465744#M45585</link>
      <description>&lt;P&gt;Not very clear on what exactly you meant by "last modification file". &lt;/P&gt;

&lt;P&gt;If you meant just display the latest version for the file, do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;filename&amp;gt;.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want the last modified timestamp of the file, use the rest api, use this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/data/lookup-table-files/&amp;lt;filename&amp;gt;.csv 
| table updated
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465744#M45585</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-24T12:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465745#M45586</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I want to retrieve the last modification date like when you do "right click" and "properties" on a file&lt;BR /&gt;
I dont understand your answer&lt;BR /&gt;
what do you mean by "| inputlookup .csv"??&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 11:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465745#M45586</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-25T11:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465746#M45587</link>
      <description>&lt;P&gt;Inputlookup displays the contents of your csv file in a table. &lt;/P&gt;

&lt;P&gt;For your use case, use the rest command I pasted in the answer&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 12:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465746#M45587</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-25T12:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465747#M45588</link>
      <description>&lt;P&gt;Please mark as answer if this answers your query&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 14:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465747#M45588</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-25T14:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465748#M45589</link>
      <description>&lt;P&gt;hello&lt;BR /&gt;
The API works but how to format the updated field??&lt;BR /&gt;
| rest/servicesNS/-/-/data/lookup-table-files/host.csv &lt;BR /&gt;
| eval updated = strftime(updated, "%d-%m-%y %H:%M")&lt;BR /&gt;
| table updated&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2019 14:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465748#M45589</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-27T14:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465749#M45590</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| eval updated=strptime(updated,"%FT%T%:z")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;strftime converts unix timestamp(number) to string&lt;BR /&gt;
strptime converts string to unix timestamp&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 00:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465749#M45590</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-28T00:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465750#M45591</link>
      <description>&lt;P&gt;If by &lt;CODE&gt;last modification&lt;/CODE&gt; you mean &lt;CODE&gt;the current state&lt;/CODE&gt;, then yes, just do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup YourLookupFileNameHere.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you mean &lt;CODE&gt;the previous state before the last edit&lt;/CODE&gt;, then this is only possible if you have taken steps to save it before you edit it, or if you are using &lt;CODE&gt;Lookup File Editor&lt;/CODE&gt; app.  If the latter, then there is a &lt;CODE&gt;Revert to previous version&lt;/CODE&gt; button that allows this.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 01:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465750#M45591</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-28T01:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465751#M45592</link>
      <description>&lt;P&gt;hummm, issue, there is no results when I add your eval...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 06:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465751#M45592</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-28T06:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465752#M45593</link>
      <description>&lt;P&gt;I would guess the time format is different in your Splunk setup. Can you post a sample time without the eval? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 09:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465752#M45593</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-28T09:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465753#M45594</link>
      <description>&lt;P&gt;here is&lt;BR /&gt;
    1970-01-01T01:00:00+01:00&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 09:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465753#M45594</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-28T09:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465754#M45595</link>
      <description>&lt;P&gt;The earliest data strptime can work with is January 1 1971. Try using a more recent date. &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/DateandTimeFunctions"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/DateandTimeFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 10:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/465754#M45595</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-28T10:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help for retrieving a lookup date and to display it in a dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/678463#M55562</link>
      <description>&lt;P&gt;Can you use above rest query for kv store lookup also?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 09:59:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-for-retrieving-a-lookup-date-and-to-display-it-in-a/m-p/678463#M55562</guid>
      <dc:creator>nehamvinchankar</dc:creator>
      <dc:date>2024-02-23T09:59:10Z</dc:date>
    </item>
  </channel>
</rss>

