Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2016 00:08:40 +0300
From:      =?iso-8859-9?Q?Yavuz_Ma=FElak?= <yavuz.maslak@netiletisim.net>
To:        <freebsd-pf@freebsd.org>
Subject:   how to convert pf-table into csv
Message-ID:  <00bf01d20ade$5bc68500$13538f00$@netiletisim.net>

next in thread | raw e-mail | index | archive | help
=DD have a dynamic pf-table  as below;

 =20

=20

10.10.231.230

        Cleared:     Fri Sep  9 22:55:53 2016

        In/Block:    [ Packets: 0                  Bytes: 0
]

        In/Pass:     [ Packets: 33455              Bytes: 2796398
]

        Out/Block:   [ Packets: 0                  Bytes: 0
]

        Out/Pass:    [ Packets: 3068               Bytes: 4350822
]

   10.10.231.234

        Cleared:     Fri Sep  9 23:33:18 2016

        In/Block:    [ Packets: 0                  Bytes: 0
]

        In/Pass:     [ Packets: 26585              Bytes: 2262193
]

        Out/Block:   [ Packets: 0                  Bytes: 0
]

        Out/Pass:    [ Packets: 11709              Bytes: 16738469
]

=20

=20

=DD want to convert it to csv format  something like that ;

=20

Let it begin an ip address and go on its statistics ;

10.10.231.234, Cleared:     Fri Sep  9 23:33:18 2016, In/Pass:     [
Packets: 26585              Bytes: 2262193

=20

How can i do that ?

=20

=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00bf01d20ade$5bc68500$13538f00$>