Skip to content

bodani/elk-postgresql-boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postgresql > csv files > filebeat > logstash

Setup your Postgresql to write csv files log_destination = 'csvlog'

Download filebeat (download, unzip)

Run filebeat with config from project folder filebeat/filebeat -e -c filebeat.yml

Logstash > Elastic > Kibana > User

Start apps docker-compose up

Check elastic cluster health curl http://elastic:[email protected]:9200/_cat/health

Access kibana web interface(wait up to 1min for first run) credentials: elastic:changeme

How to stop containers? docker-compose down

PS

Index is: logstash-*

调试

/usr/share/logstash/bin/logstash -f conf.d/postgresql.conf --verbose --debug

遇到的问题

multiline.pattern 配置 。 默认的module 模版在测试的时候发现有些case不支持

logstash 的filter add_field => {"duration" => "%{[message][0]}"}

需要中括号把 message 也阔起来 新版本新语法

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published