You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: application-gateway-logviewer-goaccess/README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,12 @@ By default, GoAccess installed by this template will parse and display traffic s
19
19
<ol type="a">
20
20
<li>Only the ApplicationGatewayAccessLog will be used by GoAccess</li>
21
21
<li>You want to make sure you are sending and storing your ApplicationGatewayAccessLog to a storage account (select the “Archive to a storage account” check box if using the Portal to enable Application Gateway logging).</li>
22
-
<li>In your storage account settings, ensure you have Shared Access Signature key configured. The expiry date time needs to be set to a date much further out in the future (eg: 1 year out from now). Also, only the Read and List permissions are needed for GoAccess. Make sure to generate the connection string as well. The Blob service SAS URL connection string is what you need to input to the ARM template.</li>
22
+
<li>In your storage account container, ensure you have Shared Access Signature key configured. The expiry date time needs to be set to a date much further out in the future (eg: 1 year out from now). Also, only the Read and List permissions are needed for GoAccess. Make sure to generate the connection string as well. The Blob Container Service SAS URL connection string is what you need to input to the ARM template.
23
+
<p>You can generate Service-level SAS URL for the Blob Container "insights-logs-applicationgatewayaccesslog" using <a href="https://azure.microsoft.com/en-in/features/storage-explorer/">Azure Storage Explorer</a> for your operating system. Storage Explorer is available for Windows, MacOS and Linux.<br /><br />
24
+
For example, the blob container SAS URL should look like this - <blockquote>https://[your-blob-url]/insights-logs-applicationgatewayaccesslog?st=2019-02-08T12%3A55%3A14Z&se=2020-02-09T12%3A55%3A00Z&sp=rl&sv=2018-03-28&sr=c&sig=jcfAjefo3TitH7kl9YC15COaSdfgMmPFnO8QTI6oY9c%3D</blockquote> <br /><br />
25
+
<imgsrc="https://user-images.githubusercontent.com/6194147/52483050-f2ec1800-2bd8-11e9-8982-224ddd37dfa9.png"width="1000"title="Container SAS token generation using Azure Storage Explorer">
26
+
<br /><br />Alternatively, you can generate the Service-level SAS using REST API. Read more about it <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas">here</a>.
27
+
</li>
23
28
</ol>
24
29
</li>
25
30
</ol>
@@ -33,7 +38,7 @@ The template will require a set of parameters input from you as the user:
33
38
<li><b>adminUsername:</b> Username you want to use for the VM the template creates</li>
34
39
<li><b>adminPassword:</b> Password you want to use to log in to the VM</li>
35
40
<li><b>dnsNameForPublicIP:</b> The DNS name (prefix) you want to use for the VM to map against its public IP</li>
36
-
<li><b>appGwAccessLogsBlobSasUri:</b> The SAS URL connection string (see 2(c) in the Pre-requisites list above) for the storage account blog where your Application Gateway Access Logs are stored</li>
41
+
<li><b>appGwAccessLogsBlobSasUri:</b> The SAS URL connection string (see 2(iii) in the Pre-requisites list above) for the storage account blog where your Application Gateway Access Logs are stored</li>
37
42
<li><b>FilterRegexForAppGwAccessLogs:</b> A regex to use to filter the Application Gateway Access Logs to a specific subset. For example, if you have multiple application gateways publishing logs to the same storage account blob, and you only want GoAccess to surface traffic stats for say one of the Application Gateways, you can provide a regex for this field to filter to just that instance.</li>
38
43
<li><b>Region:</b> The Azure region where you would like the VM to be created</li>
39
44
</ol>
@@ -56,6 +61,8 @@ Please note following aspects related to this template:
56
61
57
62
By default, the GoAccess dashboard and associated data are unsecured. Since the web server is Apache HTTP Webserver, you can secure access by following the <ahref="https://httpd.apache.org/docs/2.4/howto/auth.html">Apache Auth documentation</a>.
58
63
64
+
Also, since it is a Virtual Machine, you can use <ahref="https://docs.microsoft.com/en-us/azure/virtual-network/tutorial-filter-network-traffic">Network Security Groups</a> to allow/deny IP addresses to restrict access, but make sure that outbound internet connectivity is allowed to reach the storage account.
65
+
59
66
<h2>Getting Help</h2>
60
67
61
68
For any issues with running this template, please file an issue in GitHub under Azure/azure-quickstart-templates repository: <u>https://github.com/Azure/azure-quickstart-templates/issues</u>
0 commit comments