What's the advantage of using the defined module e.g. apache2 module over the standard log module with paths: defined?
Since I'm using logstash, is there an easy way to install all indexes required at point of use e.g. if no apache hosts are configured, don't install the apache indexes, or is this not possible? Is there a downside to installing these generic indexes, even if they're not used?
Apache2 module: If you use the module, an ingest processor can be loaded that does the processing of the logs (grok) for you. But that works best when sending the data directly to Elasticsearch.
To load all the templates for beats you can take one filebeat instances and run ./filebeat setup. There is only 1 template for all modules and only 1 daily index is normally used. What you mean by generic indices?
Types - I think I've misread this and it's the meta _type which has been removed
Apache2: so if I use the default it'll do something similar to:
filter {
if [type] == "apache" {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}
date {
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
}
Without having the specify this in my logstash conf?
If I was to install the filebeat* index into elastic via logstash, how can I add any subsequent indexes automatically e.g. say if I add another beat (e.g. packetbeat)? Is there a downside to creating packetbeat* anotherbeat* templates. even if they're never used?
I'm beginning to think it might be easier to use EK as opposed to ELK - any thought / opinions on this?
This should also answer your question about packetbeat: You can use the meta information on LS into which index it's sent.
If you just have apache logs, you probably don't need Logstash. Logstash comes into play when you need enhanced processing, local queue, multiple outputs etc. So it really depends on your use case.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.