<?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: Show last update from indexed csv file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552365#M156774</link>
    <description>&lt;P&gt;Yup, that did the trick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks mate!&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 10:21:31 GMT</pubDate>
    <dc:creator>jugarugabi</dc:creator>
    <dc:date>2021-05-20T10:21:31Z</dc:date>
    <item>
      <title>Show last update from indexed csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552346#M156761</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a csv file that is updated by a script once a minute.&amp;nbsp;&lt;BR /&gt;The output is similar to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;time,queuename,vpn,last-message-id-spooled,max-message-size-exceeded,total-messages-spooled,num-messages-spooled,current-spool-usage-in-mb,bind-count,recordsinperiod,eol&lt;BR /&gt;2021-05-20_10-20,q.static.prp.solacequeue, test_uat_de, 117446717393, 0, 40340019 , 0, 0, 25 ,0,eol&lt;BR /&gt;2021-05-20_10-20,q.static.prp.solacequeue-number2, test_uat_de, 117493, 0, 4039 , 0, 0, 25 ,0,eol&lt;BR /&gt;2021-05-20_10-19,q.static.prp.solacequeue, test_uat_de, 0, 0, 0 , 0, 0, 0 ,0,eol&lt;BR /&gt;2021-05-20_10-19,q.static.prp.solacequeue-number2, test_uat_de, 0, 0, 0 , 0, 0, 0 ,0,eol&lt;/P&gt;&lt;P&gt;Now, I want to create a search query that will show only the last update in the csv file and show me the result like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;q.static.prp.solacequeue, test_uat_de, 117446717393, 0, 40340019 , 0, 0, 25 ,0,eol&lt;BR /&gt;q.static.prp.solacequeue-number2, test_uat_de, 117493, 0, 4039 , 0, 0, 25 ,0,eol&lt;/P&gt;&lt;P&gt;Tried using the search below, but the output still shows everything that happened during the day, instead those only 2 lines.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;index=* sourcetype=queues &lt;BR /&gt;| stats latest(time) by time queuename last_message_id_spooled current_spool_usage_in_mb bind_count recordsinperiod&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Gabriel&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 08:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552346#M156761</guid>
      <dc:creator>jugarugabi</dc:creator>
      <dc:date>2021-05-20T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Show last update from indexed csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552356#M156767</link>
      <description>&lt;P&gt;Will this work for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=queues 
| stats latest(*) as * by queuename&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 May 2021 09:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552356#M156767</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-20T09:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show last update from indexed csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552359#M156770</link>
      <description>&lt;P&gt;Thanks - that simple...&lt;/P&gt;&lt;P&gt;One more question: the line with the header is added as well to the results.&lt;BR /&gt;How can I remove that particular line and provide me only the information without the header that can be found in the csv file?&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 09:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552359#M156770</guid>
      <dc:creator>jugarugabi</dc:creator>
      <dc:date>2021-05-20T09:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show last update from indexed csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552361#M156772</link>
      <description>&lt;P&gt;if you are using inputlookup to read the csv file you can use the start=1 argument. If you already have ingested it into an index, you could use | where time!="time"&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 09:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552361#M156772</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-20T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Show last update from indexed csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552365#M156774</link>
      <description>&lt;P&gt;Yup, that did the trick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks mate!&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 10:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-last-update-from-indexed-csv-file/m-p/552365#M156774</guid>
      <dc:creator>jugarugabi</dc:creator>
      <dc:date>2021-05-20T10:21:31Z</dc:date>
    </item>
  </channel>
</rss>

