Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELK stack #510

Merged
merged 7 commits into from Feb 26, 2019
Merged

ELK stack #510

merged 7 commits into from Feb 26, 2019

Conversation

cytopia
Copy link
Owner

@cytopia cytopia commented Feb 23, 2019

ELK stack

Goal

Be able to use ELK stack (Elastic Search, Logstash and Kibana)

DESCRIPTION

This PR adds configurable Elastic Search, Logstash and Kibana container (known as ELK stack) to the Devilbox.

@cytopia cytopia merged commit 1b1004c into master Feb 26, 2019
@cytopia cytopia deleted the elk-stack branch February 26, 2019 20:39
@science695
Copy link

Sorry for not reviewing this earlier.

this looks great, however: Logstash requires that you put config files in a folder. This describes what data sources logstash should import into elastic. I would recommend keeping the data volume, but adding in a host mounted directory for this folder.

From my example in #360

-e "PATH_CONFIG=/etc/logstash/conf.d"
-v /etc/logstash/:/etc/logstash \

These config files also often list the path to a metadata file (i.e.: last updated timestamp or last id), in my setup I have it as /etc/logstash/meta/table_last_update.

@cytopia
Copy link
Owner Author

cytopia commented Mar 5, 2019

@science695 I must have missed that part. Do you have an example of a logstash configuration file that I can actually try out?

@science695
Copy link

science695 commented Mar 6, 2019

Logstash is quite flexible, with many many different configuration types, from sql to logfiles to elastic beats ....

Here is Elastic's documentation on how to import apache access logs into an elastic index (very simple, almost too simple):

https://www.elastic.co/guide/en/logstash/current/config-examples.html#_processing_apache_logs

The file listed there would go in /etc/logstash/conf.d/apache-logs.conf

But the idea for this would be that conf.d folder is exposed to the host so we could put our own configs in, possibly also the /etc/logstash/meta/ folder if you are using the jdbc (SQL) input plugin.
( https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html#_usage )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants