Coder Social home page Coder Social logo

aspnetcore-supervisor-filebeat-example's Introduction

aspnetcore-supervisor-filebeat-example

ASP.NET Core & Supervisor & Filebeat Example

Create ASP.NET Core Web API Project

dotnet new webapi -o ValueService
cd ValueService
dotnet restore
cd ..

Create Test Project for Web API Project

dotnet new xunit -o ValueServiceTest
cd ValueServiceTest
dotnet add package Moq
dotnet add reference ../ValueService/ValueService.csproj
dotnet restore
cd ..

Create Solution File And Bind Projects

dotnet new sln --name ValueService
dotnet sln ValueService.sln add ValueService/ValueService.csproj ValueServiceTest/ValueServiceTest.csproj
dotnet restore

Publish Release for Docker Image

dotnet publish -c Release -o out

Build & Run Docker Image

docker build . -t valueservice
docker run -d -p 80:80 -e LOGSTASH_HOST="172.17.0.2:5044" valueservice

Test with ELK Container

This step using ELK image.

docker run -d -p 5601:5601 -p 9200:9200 -p 5044:5044 --name elk burakince/elk
docker run -d -p 80:80 --link elk:logstash -e LOGSTASH_HOST="logstash:5044" valueservice

Creating Index Pattern on Kibana

Open Kibana's Create Index Pattern page and enter filebeat-* as a pattern and click Next step. Select @timestamp and click Create index pattern. Now you can see all logs on Kibana

Kibana URL: http://localhost:5601/

aspnetcore-supervisor-filebeat-example's People

Contributors

burakince avatar

Watchers

 avatar  avatar  avatar

Forkers

scorpvictor

aspnetcore-supervisor-filebeat-example's Issues

FileBeat Not Starting Inside the Container

Cloned the repository and started the container but FileBeat doesn't seem to be starting automatically.
I had to log into the container and start FileBeat manually using the following command:
service filebeat start
I am also trying to start FileBeat using supervisord in a dot net core microservice, not sure if it has something to do with FileBeat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.