# Grok help with cisco firepower 2130

**URL:** https://discuss.elastic.co/t/grok-help-with-cisco-firepower-2130/211465
**Category:** Logstash
**Created:** [December 11, 2019, 12:29pm UTC](https://discuss.elastic.co/t/grok-help-with-cisco-firepower-2130/211465 "2019-12-11T12:29:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Aashish\_Arora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aashish_arora/32/59139_2.png) [@Aashish\_Arora](https://discuss.elastic.co/u/Aashish_Arora)
#### Post date: [December 11, 2019, 12:29pm UTC](https://discuss.elastic.co/t/grok-help-with-cisco-firepower-2130/211465/1 "2019-12-11T12:29:56Z")

</div>

Hello,  
I'm new to grok i want to put cisco fire power 2130 logs to elasticsearch  
I'm getting 6 types of different log lines so how do i write grok filter  
I'd created 6 different grok filter and checked by grok debugger all are working but I'm unable to put the filter in grok  
I want to know how to put them with if or some with different statements

Thanks in advance

---

<div class="post-metadata">

### Author: ![E04](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@E04](https://discuss.elastic.co/u/E04)
#### Post date: [January 2, 2020, 10:03pm UTC](https://discuss.elastic.co/t/grok-help-with-cisco-firepower-2130/211465/2 "2020-01-02T22:03:50Z")

</div>

Can you provide an example log and your current grok filter for review?

---

<div class="post-metadata">

### Author: ![Aashish\_Arora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aashish_arora/32/59139_2.png) [@Aashish\_Arora](https://discuss.elastic.co/u/Aashish_Arora)
#### Post date: [January 3, 2020, 10:00am UTC](https://discuss.elastic.co/t/grok-help-with-cisco-firepower-2130/211465/3 "2020-01-03T10:00:32Z")

</div>

These are only two example i'v 6 in total with different log types

Dec 6 04:17:50 firepower2130 SFIMS: Protocol: TCP, SrcIP: X.X.X.X, OriginalClientIP: ::, DstIP: X.X.X.X, SrcPort: 38222, DstPort: 443, TCPFlags: 0x0, IngressZone: Outside\_SDC, EgressZone: Inside\_SDC, DE: Primary Detection Engine (a403c8ac-f133-11e9-aa8a-f9e616853924), Policy: FP-2130-SDC, ConnectType: Start, AccessControlRuleName: Default\_IPS\_Only, AccessControlRuleAction: Allow, Prefilter Policy: Default Prefilter Policy, UserName: No Authentication Required, Client: SSL client, ApplicationProtocol: HTTPS, InitiatorPackets: 3, ResponderPackets: 1, InitiatorBytes: 454, ResponderBytes: 78, NAPPolicy: Security Over Connectivity, DNSResponseType: No Error, Sinkhole: Unknown, URLCategory: ANY, URLReputation: Well known, URL: [https://test.com](https://test.com)

Dec 6 04:17:50 firepower2130 SFIMS: Protocol: UDP, SrcIP: X.X.X.X, OriginalClientIP: ::, DstIP: X.X.X.X, SrcPort: 11492, DstPort: 53, TCPFlags: 0x0, IngressZone: Inside, EgressZone: Outside, DE: Primary Detection Engine (a403c8ac-f133-11e9-aa8a-f9e616853924), Policy: FP-2130-SDC, ConnectType: Start, AccessControlRuleName: Default\_IPS\_Only, AccessControlRuleAction: Allow, Prefilter Policy: Default Prefilter Policy, UserName: No Authentication Required, Client: DNS client, ApplicationProtocol: DNS, InitiatorPackets: 1, ResponderPackets: 0, InitiatorBytes: 89, ResponderBytes: 0, NAPPolicy: Security Over Connectivity, DNSQuery: [teredo.ipv6.microsoft.com](http://teredo.ipv6.microsoft.com), DNSRecordType: a host address, DNSResponseType: No Error, Sinkhole: Unknown, URLCategory: Unknown, URLReputation: Risk unknown

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [January 3, 2020, 3:41pm UTC](https://discuss.elastic.co/t/grok-help-with-cisco-firepower-2130/211465/4 "2020-01-03T15:41:40Z")

</div>

I would use dissect to parse the first 2 fields, then dissect to parse the rest of the line. See [this](https://discuss.elastic.co/t/parsing-firewall-logs-in-logstash/212786/2) for an example.

---

<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: [January 31, 2020, 3:41pm UTC](https://discuss.elastic.co/t/grok-help-with-cisco-firepower-2130/211465/5 "2020-01-31T15:41:41Z")

</div>

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