# Description: Take in jira tickets from vulnWhisperer and pumps into logstash

input {
  file {
    path => "/opt/Vulnwhisperer/jira/*.json"
    type => json
    codec => json
    start_position => "beginning"
    tags => [ "jira" ]
  }
}

output {
  if "jira" in [tags] {
    stdout { codec => rubydebug }
    elasticsearch {
      hosts => [ "vulnwhisp-es1.local:9200" ]
      index => "logstash-vulnwhisperer-%{+YYYY.MM}"
    }
  }
}
