Azure-docs: AppFilter is a required C# regex of the computer or VM name is a copy & paste from the MachineFilter line above it

Created on 2 Jul 2019  Â·  8Comments  Â·  Source: MicrosoftDocs/azure-docs

I've been struggling to get the multiple instrumentation keys working on a machine that is hosting 7 different websites. The AppFilter line being a copy & paste of the line above isn't helping me figure out where my config is wrong. Can you be specific on which property app insights is inspecting (perhaps with a PowerShell example fetching it directly from IIS) to help us out?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

application-insightsvc assigned-to-author doc-enhancement triaged

Most helpful comment

@kobulloc-MSFT if there are no more questions, I think it is safe to close this issue.
I updated the doc this morning and my changes should be published by the EOD: https://github.com/MicrosoftDocs/azure-docs-pr/pull/81707

All 8 comments

Adding @MS-TimothyMothra , I'm not sure if it is inappropriate to reach out to you directly on this. If it is, my apologies. I noticed that you published the NuGet package and seem to be pushing this forward at MS and am hoping that you can take a look at this issue I wrote.

@MarkIannucci Thank you for the feedback! We are investigating this and will get back to you shortly.

@MarkIannucci We're going to assign this to the document author so they can clarify this not only for you, but also for anyone else that may be reading this doc.

image

Sorry I didn't see this last week. I'm looking into it this morning

@MarkIannucci
The description for AppFilter is incorrect, thank you for bringing it to our attention.
It should say:

AppFilter is a required C# regex of the IIS Site Name. You can get a list of sites on your server by running the command get-iissite (https://docs.microsoft.com/powershell/module/iisadministration/get-iissite)
'.*' will match all.
'SiteName' will match only the IIS Site with the exact name specified.

First,
Can you please make sure that you're on the latest version of the PowerShell Module (v0.3.1-alpha)?
We recently made a change to this schema.
I just ran all the examples on this page and confirmed that they're all valid.

Second,
Answering your request for an example...

In Powershell, run the command get-iissite without any parameters.
This will print out an inventory of all sites on your server.

Example:

PS C:\Windows\system32> get-iissite

Name             ID   State      Physical Path                  Bindings
----             --   -----      -------------                  --------
Default Web Site 1    Stopped    %SystemDrive%\inetpub\wwwroot  http *:80:
                                                                net.tcp 808:*
                                                                net.msmq localhost
                                                                msmq.formatname localhost
                                                                net.pipe *
DemoWebApp       2    Started    C:\DemoWebApp\Publish          http *:80:
DemoWithSql      3    Started    C:\DemoWebApp\PublishWithSql   http *:81:
DemoWithDepSqlSd 4    Started    C:\DemoWebApp\PublishWithDepSq http *:82:
k                                lSdk


The value for the AppFilter should come from that Name column. Example: "DemoWebApp" or "DemoWithSql"

Lastly,
If you're still stuck, please email me [email protected].
I would be happy to help you out.

@MS-TimothyMothra , thank you for the follow up. As a customer, I really appreciate the open approach to documentation that Microsoft has recently adopted.

I am using v0.3.1-alpha build.

I think I understand why I was having so many problems. I am attempting to configure the monitoring at the IIS application level, not the site level. When I run Get-IISSite on the system, I get one website named Default Web Site. When I look at the UI in Status Monitor v1, it shows a whole bunch of applications under the website:

image

The black box code I'm working with, doesn't allow me to deploy different environments to different IIS Web Sites, so I used the functionality in v1 to apply different instrumentation keys to the different applications.

Does the current functionality allow me to specify the local application in the InstrumentationKeyMap and get data segregated based on that?

Hi @MarkIannucci ,
Unfortunately, Status Monitor v2 is currently unable to instrument nested websites.
We've had multiple requests for exactly this but haven't scheduled the work yet.

If you don't mind, please open an issue here: https://github.com/Microsoft/ApplicationInsights-Home requesting the feature. The upvotes will help us prioritize this work.

@kobulloc-MSFT if there are no more questions, I think it is safe to close this issue.
I updated the doc this morning and my changes should be published by the EOD: https://github.com/MicrosoftDocs/azure-docs-pr/pull/81707

Was this page helpful?
0 / 5 - 0 ratings