# PacketFilter - FilterAction

**URL:** <https://community.f5.com/t/packetfilter-filteraction/1950>\
**Category:** Technical Forums\
**Tags:** icontrol, dev, devops\
**Created:** [June 15, 2005, 2:05pm UTC](https://community.f5.com/t/packetfilter-filteraction/1950 "2005-06-15T14:05:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuval\_ben\_10707](https://avatars.discourse-cdn.com/v4/letter/y/eada6e/32.png) [@Yuval\_ben\_10707](https://community.f5.com/u/Yuval_ben_10707)\
**Post date:** [June 15, 2005, 2:05pm UTC](https://community.f5.com/t/packetfilter-filteraction/1950/1 "2005-06-15T14:05:44Z")

</div>

Hi,

I’m using iControl PacketFilter to inspect L7 patterns in packets(e.g. “confidential document” text)

My goal is to alert/log packet information (source/dest IP) on a pattern match.

Looking at the FilterAction Enumeration, I found FILTER\_ACTION\_CONTINUE (4) to be most relevant to my case. However, I could not find information on how to instruct the filter to log the packet attributes/data and later Syslog it to an external system for reporting (e.g my application).

I wonder if the method, [set\_log\_state] is relevant to my needs and what type of packet information will be log and than can be Syslog to an external application.

Any help?

Many thanks.

e.g. is there any plan to support “StreamFilter” in the future? (to better support L7 filtering)

---

<div class="post-metadata">

**Author:** ![Loc\_Pham\_101863](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@Loc\_Pham\_101863](https://community.f5.com/u/Loc_Pham_101863)\
**Post date:** [June 15, 2005, 4:51pm UTC](https://community.f5.com/t/packetfilter-filteraction/1950/2 "2005-06-15T16:51:11Z")

</div>

Networking::PacketFilter::get/set\_log\_state are the methods you would use to enable/disable logging in a packet filter. If a packet filter rule has an associated logging action and it’s enabled, an entry will be created in the system log each time the rule is matched. The log entry will contain details of the traffic that matched the rule, such as source and destination addresses and ports.

As far as sending syslog messages to an external application, it’s entirely possible, but that’s outside the realm of iControl. In order to do that, you’ll have to configure syslog or syslog-ng to allow external syslog notifications. Please look at the syslog manual on how to configure syslog.

Regards,

Loc

---

<div class="post-metadata">

**Author:** ![Yuval\_ben\_10707](https://avatars.discourse-cdn.com/v4/letter/y/eada6e/32.png) [@Yuval\_ben\_10707](https://community.f5.com/u/Yuval_ben_10707)\
**Post date:** [June 15, 2005, 4:59pm UTC](https://community.f5.com/t/packetfilter-filteraction/1950/3 "2005-06-15T16:59:33Z")

</div>

Thanks for the valuable information.

I’ll try that.
