# Need help in logstash configuration

**URL:** <https://discuss.elastic.co/t/need-help-in-logstash-configuration/47594>\
**Category:** Logstash\
**Created:** [April 18, 2016, 12:20am UTC](https://discuss.elastic.co/t/need-help-in-logstash-configuration/47594 "2016-04-18T00:20:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![navox19](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@navox19](https://discuss.elastic.co/u/navox19)\
**Post date:** [April 18, 2016, 12:20am UTC](https://discuss.elastic.co/t/need-help-in-logstash-configuration/47594/1 "2016-04-18T00:20:46Z")

</div>

I have 3 files under /conf.d

30-elasticsearch-output.conf

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
sniffing =\> true  
manage\_template =\> false  
index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}"  
document\_type =\> "%{[@metadata][type]}"  
}  
}

10-syslog-filter.conf

filter {  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" }  
add\_field =\> ["received\_at", "%{@timestamp}"]  
add\_field =\> ["received\_from", "%{host}"]  
}  
syslog\_pri { }  
date {  
match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
}  
}  
}

02-beats-input.conf  
input {  
beats {  
port =\> 5044  
ssl =\> true  
ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"  
}  
}

and i want to config logstash to get cisco asa logs  
i have this tuto to help [http://ict.renevdmark.nl/2015/10/22/cisco-asa-alerts-and-kibana/](http://ict.renevdmark.nl/2015/10/22/cisco-asa-alerts-and-kibana/)

and i'm lost how to put this config right  
plz some one help

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 18, 2016, 12:55am UTC](https://discuss.elastic.co/t/need-help-in-logstash-configuration/47594/2 "2016-04-18T00:55:17Z")

</div>

Please don't create multiple threads on the same issue 🙂  
Let's continue in [Not Able to filter two type of events in logstash filter](https://discuss.elastic.co/t/not-able-to-filter-two-type-of-events-in-logstash-filter/47556/6)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 18, 2016, 12:55am UTC](https://discuss.elastic.co/t/need-help-in-logstash-configuration/47594/3 "2016-04-18T00:55:20Z")

</div>


