Skip to content

mohsen-farahani/filebeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filebeat

Ship logs from Docker to Elasticsearch

We use the official beats docker image.

Settings

Before starting Filebeat, you should look at the configuration options in the configuration file.

The configuration file has been located at config/filebeat.yml.

ENV

To use the repository, You need to set these environment values.

Variable Default Description
FILEBEAT_VERSION 8.5.1 Filebeat version from the official docker image
ELASTIC_HOST elasticsearch Elasticsearch host
ELASTIC_PORT 9200 Elasticsearch port
ELASTIC_USERNAME elastic Elasticsearch username for HTTP auth
ELASTIC_PASSWORD changeme Elasticsearch password

Format

The format which You have to follow in your applications to use Filebeat:

{
    "application": "Laravel"
    "message": "REST_API",
    "context": {},
    "level": 200,
    "level_name": "INFO",
    "channel": "local",
    "datetime": "2022-12-01T14:14:18.762877+03:30",
    "extra": {},
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published