text: input {
    file {
      path => ['/var/log/scrapy-cluster/*.log']
      codec => json
      tags => ['scrapy-cluster']
    }
  }
  
  output {
    if 'scrapy-cluster' in [tags]{
      elasticsearch {
        hosts => "<your es hosts here>"
        template => "/etc/logstash/templates/logs-template.json"
        template_name => "logs-*"
        template_overwrite => true
        index => "logs-scrapy-cluster"
        document_type => "%{[logger]}"
      }
    }
  }