Browse Source

Updated pointing to ELK external service for testing and demo purposes

pull/977/head
jmanuelcorral 5 years ago
parent
commit
905f8552d9
18 changed files with 26 additions and 14 deletions
  1. +15
    -3
      elk/Readme.md
  2. BIN
      img/elk/azure-nsg-inboundportsConfig.png
  3. BIN
      img/elk/bitnami_splash.png
  4. BIN
      img/elk/create-vm-elk-azure-last-step.png
  5. BIN
      img/elk/create-vm-elk-azure-summary.png
  6. BIN
      img/elk/create-vm-elk-azure.png
  7. BIN
      img/elk/discover-kibana.png
  8. +1
    -1
      src/Services/Basket/Basket.API/appsettings.json
  9. +1
    -1
      src/Services/Catalog/Catalog.API/appsettings.json
  10. +1
    -1
      src/Services/Identity/Identity.API/appsettings.json
  11. +1
    -1
      src/Services/Location/Locations.API/appsettings.json
  12. +1
    -1
      src/Services/Marketing/Marketing.API/appsettings.json
  13. +1
    -1
      src/Services/Ordering/Ordering.API/appsettings.json
  14. +1
    -1
      src/Services/Ordering/Ordering.BackgroundTasks/appsettings.json
  15. +1
    -1
      src/Services/Ordering/Ordering.SignalrHub/appsettings.json
  16. +1
    -1
      src/Services/Payment/Payment.API/appsettings.json
  17. +1
    -1
      src/Web/WebMVC/appsettings.json
  18. +1
    -1
      src/Web/WebStatus/appsettings.json

+ 15
- 3
elk/Readme.md View File

@ -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)
![](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)

BIN
img/elk/azure-nsg-inboundportsConfig.png View File

Before After
Width: 567  |  Height: 690  |  Size: 17 KiB

BIN
img/elk/bitnami_splash.png View File

Before After
Width: 681  |  Height: 871  |  Size: 43 KiB

BIN
img/elk/create-vm-elk-azure-last-step.png View File

Before After
Width: 774  |  Height: 1000  |  Size: 60 KiB

BIN
img/elk/create-vm-elk-azure-summary.png View File

Before After
Width: 807  |  Height: 898  |  Size: 80 KiB

BIN
img/elk/create-vm-elk-azure.png View File

Before After
Width: 959  |  Height: 630  |  Size: 54 KiB

BIN
img/elk/discover-kibana.png View File

Before After
Width: 1157  |  Height: 727  |  Size: 62 KiB

+ 1
- 1
src/Services/Basket/Basket.API/appsettings.json View File

@ -1,7 +1,7 @@
{
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


+ 1
- 1
src/Services/Catalog/Catalog.API/appsettings.json View File

@ -4,7 +4,7 @@
"UseCustomizationData": false,
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


+ 1
- 1
src/Services/Identity/Identity.API/appsettings.json View File

@ -7,7 +7,7 @@
"UseCustomizationData": false,
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


+ 1
- 1
src/Services/Location/Locations.API/appsettings.json View File

@ -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": {


+ 1
- 1
src/Services/Marketing/Marketing.API/appsettings.json View File

@ -1,7 +1,7 @@
{
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


+ 1
- 1
src/Services/Ordering/Ordering.API/appsettings.json View File

@ -4,7 +4,7 @@
"UseCustomizationData": false,
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


+ 1
- 1
src/Services/Ordering/Ordering.BackgroundTasks/appsettings.json View File

@ -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": {


+ 1
- 1
src/Services/Ordering/Ordering.SignalrHub/appsettings.json View File

@ -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": {


+ 1
- 1
src/Services/Payment/Payment.API/appsettings.json View File

@ -1,7 +1,7 @@
{
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


+ 1
- 1
src/Web/WebMVC/appsettings.json View File

@ -13,7 +13,7 @@
"UseCustomizationData": false,
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


+ 1
- 1
src/Web/WebStatus/appsettings.json View File

@ -72,7 +72,7 @@
],
"Serilog": {
"SeqServerUrl": null,
"LogstashgUrl":null,
"LogstashgUrl": "http://elk-dev.northeurope.cloudapp.azure.com:8080",
"MinimumLevel": {
"Default": "Information",
"Override": {


Loading…
Cancel
Save