diff --git a/elk/Readme.md b/elk/Readme.md index 16c2bbcbe..a393e4a29 100644 --- a/elk/Readme.md +++ b/elk/Readme.md @@ -2,9 +2,9 @@ This article contains a brief introduction to centralized structured logging wit ![](img/elk/kibana-working.png) -## Wiring eshopOnContainers with ELK +## Wiring eshopOnContainers with ELK in Localhost -eshopOnContainers is ready for work with ELK, you only need to setup the configuration parameter **LogstashgUrl**, in **Serilog** Section, for achieve this, you can do it modifing this parameter in every appsettings.json in every service, or via Environment Variable **Serilog:LogstashUrl**. +eshopOnContainers is ready for work with ELK, you only need to setup the configuration parameter **LogstashUrl**, in **Serilog** Section, for achieve this, you can do it modifing this parameter in every appsettings.json of every service, or via Environment Variable **Serilog:LogstashUrl**. There is another option, a zero-configuration environment for testing the integration launching via ```docker-compose``` command, on the root directory of eshopOnContainers: @@ -27,4 +27,16 @@ You can wait a bit and refresh the page, the first time you enter, you need to c With the index pattern configured, you can enter in the discover section and start viewing how the tool is recollecting the logging information. -![](img/elk/kibana_result.png) \ No newline at end of file +![](img/elk/kibana_result.png) + +## Configuring ELK on Azure VM +Another option is to use a preconfigured virtual machine with Logstash, ElasticSearch and Kibana and point the configuration parameter **LogstashUrl**. For doing this you can address to Microsoft Azure, and start searching a Certified ELK Virtual Machine + +![](img/elk/create-vm-elk-azure.png) + +This options it have a certified preconfigured options (Network, VirtualMachine type, OS, RAM, Disks) for having a good starting point of ELK with good performance. + +![](img/elk/create-vm-elk-azure-summary.png) + +When you have configured the main aspects of your virtual machine, you will have a review&create last step like this: +![](img/elk/create-vm-elk-azure-last-step.png) \ No newline at end of file diff --git a/img/elk/azure-nsg-inboundportsConfig.png b/img/elk/azure-nsg-inboundportsConfig.png new file mode 100644 index 000000000..5a0371e66 Binary files /dev/null and b/img/elk/azure-nsg-inboundportsConfig.png differ diff --git a/img/elk/bitnami_splash.png b/img/elk/bitnami_splash.png new file mode 100644 index 000000000..a34643864 Binary files /dev/null and b/img/elk/bitnami_splash.png differ diff --git a/img/elk/create-vm-elk-azure-last-step.png b/img/elk/create-vm-elk-azure-last-step.png new file mode 100644 index 000000000..348f8843c Binary files /dev/null and b/img/elk/create-vm-elk-azure-last-step.png differ diff --git a/img/elk/create-vm-elk-azure-summary.png b/img/elk/create-vm-elk-azure-summary.png new file mode 100644 index 000000000..b56ae5af3 Binary files /dev/null and b/img/elk/create-vm-elk-azure-summary.png differ diff --git a/img/elk/create-vm-elk-azure.png b/img/elk/create-vm-elk-azure.png new file mode 100644 index 000000000..b7d98bb95 Binary files /dev/null and b/img/elk/create-vm-elk-azure.png differ diff --git a/img/elk/discover-kibana.png b/img/elk/discover-kibana.png new file mode 100644 index 000000000..3977042c7 Binary files /dev/null and b/img/elk/discover-kibana.png differ diff --git a/src/Services/Basket/Basket.API/appsettings.json b/src/Services/Basket/Basket.API/appsettings.json index babea8454..fb215cf56 100644 --- a/src/Services/Basket/Basket.API/appsettings.json +++ b/src/Services/Basket/Basket.API/appsettings.json @@ -1,7 +1,7 @@ { "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Catalog/Catalog.API/appsettings.json b/src/Services/Catalog/Catalog.API/appsettings.json index ede3744dc..f56f4f3a8 100644 --- a/src/Services/Catalog/Catalog.API/appsettings.json +++ b/src/Services/Catalog/Catalog.API/appsettings.json @@ -4,7 +4,7 @@ "UseCustomizationData": false, "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Identity/Identity.API/appsettings.json b/src/Services/Identity/Identity.API/appsettings.json index bcb9ce3f7..80dc3a50a 100644 --- a/src/Services/Identity/Identity.API/appsettings.json +++ b/src/Services/Identity/Identity.API/appsettings.json @@ -7,7 +7,7 @@ "UseCustomizationData": false, "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Location/Locations.API/appsettings.json b/src/Services/Location/Locations.API/appsettings.json index 8cca61af2..619668c77 100644 --- a/src/Services/Location/Locations.API/appsettings.json +++ b/src/Services/Location/Locations.API/appsettings.json @@ -4,7 +4,7 @@ "IdentityUrl": "http://localhost:5105", "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Marketing/Marketing.API/appsettings.json b/src/Services/Marketing/Marketing.API/appsettings.json index 7c015a8ca..6abeb89b9 100644 --- a/src/Services/Marketing/Marketing.API/appsettings.json +++ b/src/Services/Marketing/Marketing.API/appsettings.json @@ -1,7 +1,7 @@ { "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Ordering/Ordering.API/appsettings.json b/src/Services/Ordering/Ordering.API/appsettings.json index ea87d5b07..4865d62b1 100644 --- a/src/Services/Ordering/Ordering.API/appsettings.json +++ b/src/Services/Ordering/Ordering.API/appsettings.json @@ -4,7 +4,7 @@ "UseCustomizationData": false, "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Ordering/Ordering.BackgroundTasks/appsettings.json b/src/Services/Ordering/Ordering.BackgroundTasks/appsettings.json index 6f1e21d06..3f6239256 100644 --- a/src/Services/Ordering/Ordering.BackgroundTasks/appsettings.json +++ b/src/Services/Ordering/Ordering.BackgroundTasks/appsettings.json @@ -2,7 +2,7 @@ "ConnectionString": "Server=tcp:127.0.0.1,5433;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;", "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Ordering/Ordering.SignalrHub/appsettings.json b/src/Services/Ordering/Ordering.SignalrHub/appsettings.json index 8360223cf..68efc2800 100644 --- a/src/Services/Ordering/Ordering.SignalrHub/appsettings.json +++ b/src/Services/Ordering/Ordering.SignalrHub/appsettings.json @@ -2,7 +2,7 @@ "IdentityUrl": "http://localhost:5105", "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Services/Payment/Payment.API/appsettings.json b/src/Services/Payment/Payment.API/appsettings.json index d7ec8301d..e47377a06 100644 --- a/src/Services/Payment/Payment.API/appsettings.json +++ b/src/Services/Payment/Payment.API/appsettings.json @@ -1,7 +1,7 @@ { "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Web/WebMVC/appsettings.json b/src/Web/WebMVC/appsettings.json index 077fda891..ee80b8b9e 100644 --- a/src/Web/WebMVC/appsettings.json +++ b/src/Web/WebMVC/appsettings.json @@ -13,7 +13,7 @@ "UseCustomizationData": false, "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": { diff --git a/src/Web/WebStatus/appsettings.json b/src/Web/WebStatus/appsettings.json index 82331d00b..efb2893ca 100644 --- a/src/Web/WebStatus/appsettings.json +++ b/src/Web/WebStatus/appsettings.json @@ -72,7 +72,7 @@ ], "Serilog": { "SeqServerUrl": null, - "LogstashgUrl":null, + "LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080", "MinimumLevel": { "Default": "Information", "Override": {