When collecting Azure diagnostic data, does the staging slot also send
diagnostic data to the WadPerformanceCounters Table?
Yes, they do end up in the same table.
Each deployment gets its unique deployment identifier which can be found on the dashboard for particular instance (production or staging)
Sample WadPerformanceCountersTable
table
In order to find logs related to specific deployment (staging or production) you can filter the table by deployment identifier e.g.
DeploymentId eq '1a2c09bea1234bc1b5e6edb99993ab21'
If you have too many entries for a single deployment identifier, you reduce number of entries by adding, say, time attribute (all entries with DeploymentId '1a2c09bea1234bc1b5e6edb99993ab21' logged after midnight 5 January 2013) e.g.
DeploymentId eq '1a2c09bea1234bc1b5e6edb99993ab21' and Timestamp gt datetime'2013-01-05T00:00:00Z'
Please note that this is not very optimal way of filtering Azure Table Storage (as pointed out by Kiwi and Gaurav.
Any query which will not include PartitionKey
will result in full table scan. Since PartitionKey
in WAD tables represent a date/time value, I would recommend using that instead of Timestamp
. You may find Effective way of fetching diagnostics data post very useful.
That should help you finding out entries per environment (staging vs. production) and particular deployment.