# ELK Syslog - iptables filtering

**URL:** <https://discuss.elastic.co/t/elk-syslog-iptables-filtering/185091>\
**Category:** Logstash\
**Created:** [June 11, 2019, 4:56am UTC](https://discuss.elastic.co/t/elk-syslog-iptables-filtering/185091 "2019-06-11T04:56:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassaank97](https://avatars.discourse-cdn.com/v4/letter/h/f19dbf/32.png) [@hassaank97](https://discuss.elastic.co/u/hassaank97)\
**Post date:** [June 11, 2019, 4:56am UTC](https://discuss.elastic.co/t/elk-syslog-iptables-filtering/185091/1 "2019-06-11T04:56:04Z")

</div>

Hi all,

I am working on how to configure ELK stack to forward syslog file to ELK stack server using Filebeat.

Everything looks fine. The logs are coming to Logstash in following format:

```
input.type:
    log
ecs.version:
    1.0.0
message:
    Jun 11 09:52:37 elk-VirtualBox kernel: [7608.472526] IN=eth0 OUT= MAC=08:00:27:ad:13:1c:08:00:27:02:ca:e0:08:00 SRC=192.168.11.111 DST=192.168.11.173 LEN=58 TOS=0x00 PREC=0x00 TTL=64 ID=59421 DF PROTO=TCP SPT=5044 DPT=47872 WINDOW=4054 RES=0x00 ACK PSH URGP=0 
agent.type:
    filebeat
agent.ephemeral_id:
    f6d14bb5-0476-47e6-9b19-65980cff7dc6
agent.hostname:
    elk-VirtualBox
agent.version:
    7.1.1
agent.id:
    89356dc0-5fdd-4cca-a9d4-3b1621b3efd0
log.offset:
    7,501,428 

```

I want to filter the "message" field so that I can see the relevant fields like SRC, DST, PROTO, etc.  
I will look forward to the response.

Regards,  
Hassaan

---

<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:** [July 9, 2019, 4:56am UTC](https://discuss.elastic.co/t/elk-syslog-iptables-filtering/185091/2 "2019-07-09T04:56:09Z")

</div>

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