# Index Management CISCO ASA device

**URL:** https://discuss.elastic.co/t/index-management-cisco-asa-device/216051
**Category:** Logstash
**Created:** [January 22, 2020, 12:06pm UTC](https://discuss.elastic.co/t/index-management-cisco-asa-device/216051 "2020-01-22T12:06:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Yashwant\_Shettigar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashwant_shettigar/32/47652_2.png) [@Yashwant\_Shettigar](https://discuss.elastic.co/u/Yashwant_Shettigar)
#### Post date: [January 22, 2020, 12:06pm UTC](https://discuss.elastic.co/t/index-management-cisco-asa-device/216051/1 "2020-01-22T12:06:03Z")

</div>

Hello,

I have a centralized ELK server, where data is getting shipped via winlogbeat and filebeat installed on client machines. Now I am trying to route cisco-asa devices logs to this server. Upto some extent I am bit successful in getting the data, but facing issue to create a new index pattern for it via logstash configuration. Please check below configuration and help me in fixing it (below config is not working):

Just to make it more clear,  
when I get data from winlogbeat and filebeat, I get indexes in winlogbeat-\* filebeat-\* format.  
I want the same kind of format for firewall logs, but instead I am getting them in  
%{[@metadata][beat]}-\* format. I want it to achieve in firewall-\* format.

input.conf

* * *

input {  
beats {  
port =\> 6099  
}

udp {  
port =\> 5000  
type =\> "cisco-asa"  
}

}

* * *

output.conf

* * *

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
sniffing =\> true  
manage\_template =\> false

if [type] == "cisco-asa" {  
index =\> "firewall-%{+YYYY.MM.dd}" }

if [type] != "cisco-asa" {  
index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}" }

```
           }

```

stdout {  
codec =\> rubydebug  
}  
}

* * *

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 19, 2020, 12:06pm UTC](https://discuss.elastic.co/t/index-management-cisco-asa-device/216051/2 "2020-02-19T12:06:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
