Init elastic
This commit is contained in:
		@@ -1,3 +1,3 @@
 | 
			
		||||
FROM fluent/fluentd:latest
 | 
			
		||||
 | 
			
		||||
RUN ["gem", "install", "fluent-plugin-influxdb", "--no-rdoc", "--no-ri"]
 | 
			
		||||
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-rdoc", "--no-ri"]
 | 
			
		||||
 
 | 
			
		||||
@@ -7,10 +7,13 @@
 | 
			
		||||
<match *.**>
 | 
			
		||||
  @type copy
 | 
			
		||||
  <store>
 | 
			
		||||
    @type influxdb
 | 
			
		||||
    host influxdb_elena
 | 
			
		||||
    dbname logging
 | 
			
		||||
    port 8086
 | 
			
		||||
    @type elasticsearch
 | 
			
		||||
    host elastic_elena
 | 
			
		||||
    logstash_format true
 | 
			
		||||
    logstash_prefix fluentd
 | 
			
		||||
    logstash_dateformat %Y%m%d
 | 
			
		||||
    include_tag_key true
 | 
			
		||||
    type_name access_log
 | 
			
		||||
    tag_key @log_name
 | 
			
		||||
    flush_interval 1s
 | 
			
		||||
  </store>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user