From 1704d53016e8bb0bf7d1f3234c068f7111c432ff Mon Sep 17 00:00:00 2001 From: Maxim Lukiyanov Date: Mon, 16 Dec 2013 22:45:41 -0800 Subject: [PATCH] Adding reference to AzCopy and md file. --- ...s.ps1 => AnalyzeWebSiteApplicationLog.ps1} | 8 ++++--- .../big-data/_AnalyzeWebSiteApplicationLog.md | 21 +++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) rename solutions/big-data/{AnalyzeWebSiteApplicationLogs.ps1 => AnalyzeWebSiteApplicationLog.ps1} (95%) create mode 100644 solutions/big-data/_AnalyzeWebSiteApplicationLog.md diff --git a/solutions/big-data/AnalyzeWebSiteApplicationLogs.ps1 b/solutions/big-data/AnalyzeWebSiteApplicationLog.ps1 similarity index 95% rename from solutions/big-data/AnalyzeWebSiteApplicationLogs.ps1 rename to solutions/big-data/AnalyzeWebSiteApplicationLog.ps1 index adaa268..d75a480 100644 --- a/solutions/big-data/AnalyzeWebSiteApplicationLogs.ps1 +++ b/solutions/big-data/AnalyzeWebSiteApplicationLog.ps1 @@ -8,10 +8,12 @@ the transient HDInsight cluster which is provisioned for the duration of the script execution. The script also creates new storage account to store output of the analysis. The output files can be imported into Excel or other graphing tool to build graphic chart of values. -.EXAMPLE - .\AnalyzeWebSiteApplicationLogs.ps1 -Website "MyWebsiteName" -LogStorageAccount "MyWebSiteLogStorageAccount" + Note: This script uses AzCopy utility downloadable form here: http://go.microsoft.com/fwlink/?LinkId=287086 - .\AnalyzeWebSiteApplicationLogs.ps1 -Website "MyWebsiteName" -LogStorageAccount "MyWebSiteLogStorageAccount" ` +.EXAMPLE + .\AnalyzeWebSiteApplicationLog.ps1 -Website "MyWebsiteName" -LogStorageAccount "MyWebSiteLogStorageAccount" + + .\AnalyzeWebSiteApplicationLog.ps1 -Website "MyWebsiteName" -LogStorageAccount "MyWebSiteLogStorageAccount" ` -Location "North Europe" -ClusterSizeInNodes 4 #> diff --git a/solutions/big-data/_AnalyzeWebSiteApplicationLog.md b/solutions/big-data/_AnalyzeWebSiteApplicationLog.md new file mode 100644 index 0000000..3ba6896 --- /dev/null +++ b/solutions/big-data/_AnalyzeWebSiteApplicationLog.md @@ -0,0 +1,21 @@ +# AnalyzeWebSiteApplicationLog +## Description ## + Analyzes azure web site application logs using transient HDInsight cluster. + + If azure web site is configured to store application logs in azure blob storage this script can be used to generate performance metrics of + the web site based on the following pattern in application log message: "Perf: took ". The script will calculate for each + perf metric found in the logs its average value and CSV formatted table of the metric values for each time-stamp. Processing of the data is performed on + the transient HDInsight cluster which is provisioned for the duration of the script execution. The script also creates new storage account to store output + of the analysis. The output files can be imported into Excel or other graphing tool to build graphic chart of values. + +**Note:** This script uses AzCopy utility downloadable form here: http://go.microsoft.com/fwlink/?LinkId=287086 + +## Scenario ## +Analyze performance of Azure Web Site based on application logs. +## Requirements ## +- PowerShell Version 3.0 +- Windows Azure PowerShell December 2013 +- AzCopy + +## See Also ## +- Set-AzureSubscription