Code Monkey home page Code Monkey logo

filebeat's Introduction

Filebeat

Supported tags and respective Dockerfile links

Run the latest container with:

docker run stakater/filebeat:latest

Advanced

Build an image: docker build -t stakater/filebeat .

Push an image: sudo docker push stakater/filebeat

Note you might have to login first before you can push the image to docker-hub sudo docker login

Extra Info

Before starting Filebeat, you should look at the configuration options in the configuration file, for example /etc/filebeat/filebeat.yml

Tell filebeat container three things:

  1. location (directory) containing logs to beat
  2. logstash server host
  3. logstash server port

e.g.

docker run -d -v "/Users/rasheed/Documents/projects/pliro/ams/logs:/var/log/app" -e "LOGSTASH_HOST=192.168.99.100" -e "LOGSTASH_PORT=5044" stakater/filebeat

Run filebeat with debug level logging

To run filebeat with full debug logs...

/usr/bin/filebeat -e -d "*" -c /etc/filebeat/filebeat.yml

filebeat logs can be found at: /var/log/mybeat/mybeat

and level can be changed in filebeat.yml

Filebeat & ElasticSearch

Before starting Filebeat for the first time, run this command (replace ELASTIC_SEARCH_HOST with the appropriate hostname) to load the default index template in Elasticsearch:

curl -XPUT 'http://{ELASTIC_SEARCH_HOST}:9200/_template/filebeat?pretty' -d@/{PATH_TO_THIS_FILE}/filebeat.template.json

And the response should be:

{
  "acknowledged" : true
}

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.