<?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 get a list of websites from IIS servers with the Splunk IIS Addon? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646850#M223877</link>
    <description>&lt;P&gt;If you do&lt;/P&gt;&lt;PRE&gt;script=Get-IISSite&lt;/PRE&gt;&lt;P&gt;you're calling the Get-IISSite cmdlet and just get its raw input.&lt;/P&gt;&lt;P&gt;A very basic example of script contents which could do something with it would be&lt;/P&gt;&lt;PRE&gt;$sites = Get-IISSite&lt;BR /&gt;for ($site in $sites)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Output "$site.Id $site.whatever $site.and_so_on"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;(Writing from memory so the specifics of the inside code blocks might be a bit off but the general idea is there)&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 16:44:18 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2023-06-13T16:44:18Z</dc:date>
    <item>
      <title>How to get a list of websites from IIS servers with the Splunk IIS Addon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646398#M223739</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;We currently have multiple IIS servers with multiple websites and our goal is to setup a dashboard “overview” panel &amp;nbsp;with a list of the following in a table format:&lt;/P&gt;
&lt;P&gt;- servers names with IP addresses&lt;/P&gt;
&lt;P&gt;- websites installed on the servers&lt;/P&gt;
&lt;P&gt;- status of the website (up or down)&lt;/P&gt;
&lt;P&gt;-apppool used by the website and its status (running or not)&lt;/P&gt;
&lt;P&gt;-IIS bindings for each website&lt;/P&gt;
&lt;P&gt;we have installed the the Splunk Windows IIS addon &amp;nbsp;and data is being imported into the index using the ms:iis:auto sourcetype&lt;/P&gt;
&lt;P&gt;I am struggling to find information how best to setup the panel and what the best search query to use or approach is for something like this.&lt;/P&gt;
&lt;P&gt;Any advice / information on best approaches would be appreciated at least to get us started, In order to learn how best to proceed.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 14:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646398#M223739</guid>
      <dc:creator>Hudond</dc:creator>
      <dc:date>2023-06-09T14:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of websites from IIS servers with the Splunk IIS Addon</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646401#M223741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/164382"&gt;@Hudond&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I developed a dashboard like your some time ago, but now I haven't IIS logs, could you share some sample of your logs?&lt;BR /&gt;in the meantime, see in the Splunk App for Web Analytics (&lt;A href="https://splunkbase.splunk.com/app/2699" target="_blank"&gt;https://splunkbase.splunk.com/app/2699&lt;/A&gt;) if you find what you're searching.&lt;/P&gt;&lt;P&gt;You can also see in the archived app Splunk App for Windows Infrastructure (&lt;A href="https://splunkbase.splunk.com/app/1680" target="_blank"&gt;https://splunkbase.splunk.com/app/1680&lt;/A&gt;) where (if I correctly remember) there's some interesting dashboard.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 04:49:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646401#M223741</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-09T04:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of websites from IIS servers with the Splunk IIS Addon</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646408#M223744</link>
      <description>&lt;P&gt;The IIS addon lets you analyze logs. It doesn't query the state of the server or perform its inventory. To some extent you can infer the server's state from whether you're getting logs or not and from ratio of success responses and failuress but that's it.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 06:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646408#M223744</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-06-09T06:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of websites from IIS servers with the Splunk IIS Addon</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646462#M223758</link>
      <description>&lt;P&gt;Thank you, I was not 100% certain of that point but you did clarify it for me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646462#M223758</guid>
      <dc:creator>Hudond</dc:creator>
      <dc:date>2023-06-09T16:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of websites from IIS servers with the Splunk IIS Addon</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646463#M223759</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have been given permission to share the following scrubbed information.&lt;/P&gt;&lt;P&gt;I did review the web analytics app but found that it did not meet the requirements for other thing we needed.&amp;nbsp; &amp;nbsp;We used to use the Windows infrastructure application before we transitioned to ITE works.&amp;nbsp; But I did not think of that,&amp;nbsp; I will review our old information we had.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did consider using powershell as a possibility but I am still researching that approach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;-----------------&lt;/P&gt;&lt;P&gt;#Software: Microsoft Internet Information Services 10.0&lt;BR /&gt;#Version: 1.0&lt;BR /&gt;#Date: 2023-06-07 03:01:03&lt;BR /&gt;#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status time-taken https&lt;BR /&gt;2023-06-07 03:01:00 W3SVC2 ServerNameHere 0.0.0.0 GET / - 80 - 0.0.0.0 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0) - - SiteNameHere 303 0 0 1421 off&lt;BR /&gt;2023-06-07 03:01:00 W3SVC2 ServerNameHere 0.0.0.0 GET / - 80 - 0.0.0.0 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0) - - SiteNameHere 303 0 0 0 off&lt;BR /&gt;2023-06-07 03:01:03 W3SVC2 ServerNameHere 0.0.0.0 GET / - 80 - 0.0.0.0 HTTP/1.1 - - - SiteNameHere 303 0 0 0 off&lt;BR /&gt;2023-06-07 03:02:51 W3SVC2 ServerNameHere 0.0.0.0 GET / - 80 - 0.0.0.0 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0) - - SiteNameHere 303 0 0 0 off&lt;BR /&gt;2023-06-07 03:02:51 W3SVC2 ServerNameHere 0.0.0.0 GET / - 80 - 0.0.0.0 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0) - - SiteNameHere 303 0 64 0 off&lt;BR /&gt;2023-06-07 03:02:51 W3SVC2 ServerNameHere 0.0.0.0 GET / - 80 - 0.0.0.0 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0) - - SiteNameHere 303 0 0 0 off&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>Fri, 09 Jun 2023 17:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646463#M223759</guid>
      <dc:creator>Hudond</dc:creator>
      <dc:date>2023-06-09T17:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a list of websites from IIS servers with the Splunk IIS Addon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646725#M223849</link>
      <description>&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;I was able to come up with the following process but I am having difficulty figuring out one issue.&lt;/P&gt;&lt;P&gt;I added the following powershell scriot to the inputs.conf file on the IIS server that send the data to the index on the indexer.&lt;/P&gt;&lt;P&gt;[powershell://IISSites]&lt;BR /&gt;script = Get-IISSite&lt;BR /&gt;schedule = 0 0 0 * * ?&lt;BR /&gt;source = powershell&lt;BR /&gt;sourcetype = custom-sourcetype&lt;BR /&gt;index=Index-Name&lt;/P&gt;&lt;P&gt;When observing the index entries I am seeing the data I need with the following exception for the bindings field:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Results-in-index.JPG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25798iC334E392711517B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Results-in-index.JPG" alt="Results-in-index.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;the binding entry seems to have one of the bindings listed from script but the remainders are all identified as System.Object[]&amp;nbsp; and that I must admit has me stumped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the powershell script on the IIS server it gives me all the data I am interested in without issue.&amp;nbsp; It is just when running it in splunk that I see the System.Object[]&amp;nbsp; in the index.&lt;/P&gt;&lt;P&gt;Thank you for any guidance you can provide.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 20:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646725#M223849</guid>
      <dc:creator>Hudond</dc:creator>
      <dc:date>2023-06-12T20:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a list of websites from IIS servers with the Splunk IIS Addon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646826#M223873</link>
      <description>&lt;P&gt;I'm not a PS-expert but I suspect that your script does indeed find some objects and returns them. It's just that when it's run from the PS CLI, the PS shell renders the output as text (possibly not including all properties) whereas if you just call the cmdlet directly, the input gets the list of objects and somewhere down the path it's rendered as object.&lt;/P&gt;&lt;P&gt;I'd probably try to write a script iterating over the results of Get-IISSite and printing interesting properties.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 13:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646826#M223873</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-06-13T13:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a list of websites from IIS servers with the Splunk IIS Addon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646832#M223874</link>
      <description>&lt;P&gt;Thank you for the information, but as you mentioned you are not a PS-expert, I have to also admit I am not well versed in scripting either.&amp;nbsp; But I would appreciate some guidance,&amp;nbsp; if you could, allowing me an opportunity to learn a little more about it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You mentioned "whereas if you call the cmdlet directly"&amp;nbsp; and "&lt;SPAN&gt;write a script iterating over the results of Get-IISSite and printing interesting properties"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you provide a short sample of what that would look like so that I could review?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am uncertain what you meant&amp;nbsp;when you wrote write the cmdlet directly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 14:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646832#M223874</guid>
      <dc:creator>Hudond</dc:creator>
      <dc:date>2023-06-13T14:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a list of websites from IIS servers with the Splunk IIS Addon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646850#M223877</link>
      <description>&lt;P&gt;If you do&lt;/P&gt;&lt;PRE&gt;script=Get-IISSite&lt;/PRE&gt;&lt;P&gt;you're calling the Get-IISSite cmdlet and just get its raw input.&lt;/P&gt;&lt;P&gt;A very basic example of script contents which could do something with it would be&lt;/P&gt;&lt;PRE&gt;$sites = Get-IISSite&lt;BR /&gt;for ($site in $sites)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Output "$site.Id $site.whatever $site.and_so_on"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;(Writing from memory so the specifics of the inside code blocks might be a bit off but the general idea is there)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 16:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-list-of-websites-from-IIS-servers-with-the-Splunk/m-p/646850#M223877</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-06-13T16:44:18Z</dc:date>
    </item>
  </channel>
</rss>

