<?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: Has anyone successfully gathered logs from WSUS? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381801#M68853</link>
    <description>&lt;P&gt;you would have to do this on all hosts though&lt;/P&gt;

&lt;P&gt;people are looking to get directly from WSUS&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 19:03:22 GMT</pubDate>
    <dc:creator>nick405060</dc:creator>
    <dc:date>2019-12-17T19:03:22Z</dc:date>
    <item>
      <title>Has anyone successfully gathered logs from WSUS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381796#M68848</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;

&lt;P&gt;Just wondering if anyone here has been successful in getting logs out of WSUS that shows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;number of hosts with outstanding patches,&lt;/LI&gt;
&lt;LI&gt;number of hosts with failing patches,&lt;/LI&gt;
&lt;LI&gt;list of patches applied to different hosts&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;etc.&lt;/P&gt;

&lt;P&gt;The TA for WSUS appears to only seems to perform field extractions, not anything to do with the inputs from WSUS. I have written some PS to extract this information but there must be a better way.&lt;/P&gt;

&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
W&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 00:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381796#M68848</guid>
      <dc:creator>lwass</dc:creator>
      <dc:date>2018-11-12T00:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone successfully gathered logs from WSUS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381797#M68849</link>
      <description>&lt;P&gt;Hi lwass,&lt;BR /&gt;
If your WSUS install had a full SQL db instance, you could use Splunk DB connect.&lt;/P&gt;

&lt;P&gt;Could you share your ps script in a way to work on then, why not create schedule scripts inputs in the TA app ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 07:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381797#M68849</guid>
      <dc:creator>o_calmels</dc:creator>
      <dc:date>2019-10-22T07:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone successfully gathered logs from WSUS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381798#M68850</link>
      <description>&lt;P&gt;bumping this.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 21:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381798#M68850</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2019-12-12T21:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone successfully gathered logs from WSUS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381799#M68851</link>
      <description>&lt;P&gt;&lt;A href="https://translate.google.co.jp/translate?hl=ja&amp;amp;sl=ja&amp;amp;tl=en&amp;amp;u=https%3A%2F%2Fblogs.technet.microsoft.com%2Fjpwsus%2F2018%2F02%2F02%2Frpev%2F" target="_blank"&gt;How to read ReportingEvents.log&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;LOG SAMPLES:&lt;/P&gt;

&lt;P&gt;| makeresults &lt;BR /&gt;
    | eval _raw="{68D698EE-B4A7-4CA5-9D33-EFB2EDE6CD36}        2017-12-13 10:37:22:371+0900        1        147 [AGENT_DETECTION_FINISHED]        101        {00000000-0000-0000-0000-000000000000}        0        0        UpdateOrchestrator        Success        Software Synchronization        Windows Update Client successfully detected 3 updates." &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{1AF10086-220D-47E2-BA6B-7CDA8358E2C8}        2017-12-13 10:37:23:309+0900        1        167 [AGENT_DOWNLOAD_STARTED]        101        {89F1C905-9C84-4A67-9B90-17B5E30B0FCF}        201        0        UpdateOrchestrator        Success        Content Download        Download started."] &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{4C01117E-1FB6-404C-B32B-3EBE8A15A185}        2017-12-13 10:37:26:762+0900        1        162 [AGENT_DOWNLOAD_SUCCEEDED]        101        {89F1C905-9C84-4A67-9B90-17B5E30B0FCF}        201        0        UpdateOrchestrator        Success        Content Download        Download succeeded."] &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{55010EE0-76AE-42B0-A212-89169299185E}        2017-12-13 10:43:11:392+0900        1        181 [AGENT_INSTALLING_STARTED]        101        {9A3FB4A5-968D-47D6-B87E-CD248FB9EEF7}        200        0        UpdateOrchestrator        Success        Content Install        Installation Started: Windows has started installing the following update: 2017-12 x64 ベース システム用 Windows Server 2016 の累積更新プログラム (KB4053579) " ] &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{57866C44-0196-4EFB-A265-64B5F691B73F}        2017-12-13 10:59:40:657+0900        1        201 [AGENT_INSTALLING_PENDING]        101        {9A3FB4A5-968D-47D6-B87E-CD248FB9EEF7}        200        240005        UpdateOrchestrator        Success        Content Install        Installation pending. " ] &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{E9D3C1A8-1EEF-4AD9-9FA8-19BFA0C1FD4F}        2017-12-13 17:39:11:176+0900        1        183 [AGENT_INSTALLING_SUCCEEDED]        101        {9A3FB4A5-968D-47D6-B87E-CD248FB9EEF7}        200        0        UpdateOrchestrator        Success        Content Install        Installation Successful: Windows successfully installed the following update: 2017-12 x64 ベース システム用 Windows Server 2016 の累積更新プログラム (KB4053579) " ] &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{F6703CB6-0C82-4E7B-8C75-C25946AA03B0} 2018-01-17 20:13:28:509+0900  1      148 [AGENT_DETECTION_FAILED]      101    {00000000-0000-0000-0000-000000000000} 0      8024402c       UpdateOrchestrator    Failure Software Synchronization      Windows Update Client failed to detect with error 0x8024402c. "] &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{BC2328B6-6BE3-4C84-9F01-E177859503B6}        2017-12-12 19:30:38:444+0900        1        161 [AGENT_DOWNLOAD_FAILED]        101        {3FD93540-CD8C-4939-A71D-1C2BE7767D4D}        200        80246008        UpdateOrchestrator        Failure        Content Download        Error: Download failed. "] &lt;BR /&gt;
    | appendpipe &lt;BR /&gt;
        [| eval _raw="{2C3C39FA-FC0F-4F44-9049-D2AA53B27FFB}        2017-12-12 19:46:19:636+0900        1        182 [AGENT_INSTALLING_FAILED]        101        {BFC8A103-FD5F-4458-9935-231D9F79E2C1}        203        80242015        UpdateOrchestrator        Failure        Content Install        Installation Failure: Windows failed to install the following update with error 0x80242015: 2017-11 x64 ベース システム用 Windows Server 2016 の累積更新プログラム (KB4051033) "]&lt;BR /&gt;
    | dedup _raw&lt;BR /&gt;
    | fields - _time&lt;/P&gt;

&lt;P&gt;However, this is the host side.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381799#M68851</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-09-30T03:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone successfully gathered logs from WSUS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381800#M68852</link>
      <description>&lt;P&gt;Have you looked into the Splunk App for Windows Infrastructure? &lt;A href="https://splunkbase.splunk.com/app/1680/"&gt;https://splunkbase.splunk.com/app/1680/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I know there is a stanza in the inputs.conf for the Add-on for Windows (&lt;A href="https://splunkbase.splunk.com/app/742/"&gt;https://splunkbase.splunk.com/app/742/&lt;/A&gt;) that pulls the WindowsUpdate.log.  There is a dashboard in the App with several panels around updates.&lt;/P&gt;

&lt;P&gt;Not sure if this covers all of your use cases, but it will at least give you whats in the WindowsUpdate.log.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6068iC4FF390A843FD9BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 15:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381800#M68852</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2019-12-17T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone successfully gathered logs from WSUS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381801#M68853</link>
      <description>&lt;P&gt;you would have to do this on all hosts though&lt;/P&gt;

&lt;P&gt;people are looking to get directly from WSUS&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 19:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381801#M68853</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2019-12-17T19:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone successfully gathered logs from WSUS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381802#M68854</link>
      <description>&lt;P&gt;I found that using SQLCMD and outputting to a CSV was the best option, so i scheduled this as a task;&lt;/P&gt;

&lt;P&gt;sqlcmd -S np:\.\pipe\MICROSOFT##WID\tsql\query -i D:\TTAS\WSUS_query\WSUS_query.txt -o D:\TTAS\WSUS_query\hotfixes.csv -W -s ","&lt;/P&gt;

&lt;P&gt;Which executes the query in WSUS_query.txt and outputs to hotfixes.csv.&lt;/P&gt;

&lt;P&gt;W &lt;BR /&gt;
trim whitespace&lt;/P&gt;

&lt;P&gt;s ","&lt;BR /&gt;
use comma as delimiter&lt;/P&gt;

&lt;P&gt;The query i used is this:&lt;BR /&gt;
use SUSDB&lt;BR /&gt;
select &lt;BR /&gt;
    CURRENT_TIMESTAMP as datetime,&lt;BR /&gt;
    ct.FullDomainName, &lt;BR /&gt;
    ct.IPAddress, &lt;BR /&gt;
    ctd.OSBuildNumber,&lt;BR /&gt;
    ct.LastReportedStatusTime, &lt;BR /&gt;
    uV.DefaultTitle, &lt;BR /&gt;
    uspc.SummarizationState, &lt;BR /&gt;
    uv.KnowledgebaseArticle&lt;BR /&gt;
from tbComputerTarget ct&lt;BR /&gt;
left join tbUpdateStatusPerComputer uspc on uspc.TargetID=ct.TargetID&lt;BR /&gt;
left join tbUpdate u on u.LocalUpdateID = uspc.LocalUpdateID&lt;BR /&gt;
left join [SUSDB].[PUBLIC_VIEWS].[vUpdate] uV on uV.UpdateId = u.UpdateID&lt;BR /&gt;
left join tbComputerTargetDetail ctd on ctd.TargetID=ct.TargetID&lt;BR /&gt;
order by FullDomainName , "DefaultTitle" desc&lt;/P&gt;

&lt;P&gt;Then it's simple Splunking &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-successfully-gathered-logs-from-WSUS/m-p/381802#M68854</guid>
      <dc:creator>Nikobobinus</dc:creator>
      <dc:date>2020-09-30T05:17:44Z</dc:date>
    </item>
  </channel>
</rss>

