<?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: Collect outdated packages (apt list --upgradable) through UF in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Collect-outdated-packages-apt-list-upgradable-through-UF/m-p/311013#M58430</link>
    <description>&lt;P&gt;All you need is a one-liner shell script or whatever fancy thing you want to build, and tell the UF to run it on a schedule: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Getdatafromscriptedinputs#Add_a_scripted_input_with_inputs.conf"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Getdatafromscriptedinputs#Add_a_scripted_input_with_inputs.conf&lt;/A&gt;&lt;BR /&gt;
The forwarder will take stdout from the script, and send it off to be indexed. Make sure your script prints out a timestamp before the actual output, that way you'll make your splunking life so much easier.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Feb 2018 00:14:22 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2018-02-25T00:14:22Z</dc:date>
    <item>
      <title>Collect outdated packages (apt list --upgradable) through UF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Collect-outdated-packages-apt-list-upgradable-through-UF/m-p/311012#M58429</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;

&lt;P&gt;you know how you can run $ apt list --upgradable and get a list of all the packages that have a pending update?&lt;BR /&gt;
I want to get that info from all my linux host in Splunk, so I can see: "this host has 100 pending updates", etc.&lt;/P&gt;

&lt;P&gt;I can think of many ways to do it, but the most elegant one I believe would be using the UF with a script to get the data (in a very similar way as the Add-on for Unix does it). The problem is, I've never done such a thing and I'm very new to this.&lt;/P&gt;

&lt;P&gt;Has someone done this before? any pointers? any other solution that would be better? (i.e: I don't want to have to run a cronjob to create a log to then ingest that, it makes it difficult to distribute to all hosts)&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 23:28:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Collect-outdated-packages-apt-list-upgradable-through-UF/m-p/311012#M58429</guid>
      <dc:creator>worm929</dc:creator>
      <dc:date>2018-02-23T23:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Collect outdated packages (apt list --upgradable) through UF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Collect-outdated-packages-apt-list-upgradable-through-UF/m-p/311013#M58430</link>
      <description>&lt;P&gt;All you need is a one-liner shell script or whatever fancy thing you want to build, and tell the UF to run it on a schedule: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Getdatafromscriptedinputs#Add_a_scripted_input_with_inputs.conf"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Getdatafromscriptedinputs#Add_a_scripted_input_with_inputs.conf&lt;/A&gt;&lt;BR /&gt;
The forwarder will take stdout from the script, and send it off to be indexed. Make sure your script prints out a timestamp before the actual output, that way you'll make your splunking life so much easier.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 00:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Collect-outdated-packages-apt-list-upgradable-through-UF/m-p/311013#M58430</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-02-25T00:14:22Z</dc:date>
    </item>
  </channel>
</rss>

