# Filter pfsense Logs in Logstash

**URL:** <https://discuss.elastic.co/t/filter-pfsense-logs-in-logstash/207658>\
**Category:** Logstash\
**Created:** [November 13, 2019, 8:54am UTC](https://discuss.elastic.co/t/filter-pfsense-logs-in-logstash/207658 "2019-11-13T08:54:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snadro](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Snadro](https://discuss.elastic.co/u/Snadro)\
**Post date:** [November 13, 2019, 8:54am UTC](https://discuss.elastic.co/t/filter-pfsense-logs-in-logstash/207658/1 "2019-11-13T08:54:20Z")

</div>

Hi erveryone.

I looking for to use ELK-Stack as intrusion decetion system (IDS). i'm new in ELK and it is my first setup of en IDS.

Our-Setup:  
Firewall: pfsense  
ELK-Stack Version: 6.8.4  
Java-Version: 1.8.0\_222-8u222-b10-1ubuntu1~18.04.1-b10

An pfsense Syslog file shows like the following:  
5,16777216,,1000000103,igb1,match,block,in,4,0x10,,128,0,0,none,17,udp,328,198.51.100.1,198.51.100.2,67,68,308

Insiede this message there are two IP-adresses. the First one ist the source of the "attack" ant the second one ist the destination, where the hacker want to go. Now i want to Filter the Log, that I'm able to count how many attacks are coming from an address.

If you need some additional informations plese write me. I don't send the actuerl config directly here, because of spam. The ELK-Stack Setup i had done with the following guide:

> <https://github.com/a3ilson/pfelk/blob/master/README.md>

---

<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:** [December 11, 2019, 8:54am UTC](https://discuss.elastic.co/t/filter-pfsense-logs-in-logstash/207658/2 "2019-12-11T08:54:24Z")

</div>

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