From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 12:14:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F7AA1065683 for ; Wed, 20 Aug 2008 12:14:17 +0000 (UTC) (envelope-from freebsd@violetlan.net) Received: from mail.violetlan.net (mail.violetlan.net [80.81.242.7]) by mx1.freebsd.org (Postfix) with ESMTP id 2B6708FC1B for ; Wed, 20 Aug 2008 12:14:17 +0000 (UTC) (envelope-from freebsd@violetlan.net) Received: from mail.violetlan.net (mail.violetlan.net [10.0.100.111]) by mail.violetlan.net (Postfix) with ESMTP id 0EFE211464 for ; Wed, 20 Aug 2008 13:14:16 +0100 (BST) Received: from www.violetlan.net (mbali.violetlan.net [10.0.100.150]) by mail.violetlan.net (Postfix) with ESMTP id CBA3311463 for ; Wed, 20 Aug 2008 13:14:15 +0100 (BST) Received: from 217.45.165.129 (SquirrelMail authenticated user freebsd@violetlan.net) by www.violetlan.net with HTTP; Wed, 20 Aug 2008 13:14:15 +0100 (BST) Message-ID: <60643.217.45.165.129.1219234455.squirrel@www.violetlan.net> Date: Wed, 20 Aug 2008 13:14:15 +0100 (BST) From: "Reinhold" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: grok not parsing tcpdump output X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2008 12:14:17 -0000 Hi I'm trying to get grok to parse tcpdump output from port scanners but for some reason I can't get it to work. This is what I have in my grok.conf exec "tcpdump -li rl0 -n 2> /dev/null" { type "ssh-connect" { match = "%IP:SRC%.\d+ > %IP:DST%.22: S"; reaction = "echo 'ssh-connect: %IP:SRC% -> %IP:DST%' >> /var/log/sshconnect"; }; type "port-scan" { match = "%IP:SRC%.%PORT% > %IP:DST%.%PORT:DST%: S"; key = "%IP:SRC%"; threshold = 5; interval = 5; reaction = "echo 'Port scan from %IP:SRC%' >> /var/log/portscan"; }; }; The ssh part of it works, I get all the goodies in the sshconnect file but when I run nmap against the system the portscan file stays empty. Any one that can help me with this please? Thanks Reinhold