Hi Andras,

Yes. First let me remind you can distinguish which NetFlow sender is
generating the flows by enabling the peer_src_ip primitive - just in
case this is what you are trying to accomplish. A config that does what
you want follows, consider a MySQL plugin can write to a single MySQL
DB/table, so you will need two MySQL plugins instantiated to do the
job (please double-check syntax yourself):

1) define a pre_tag_map and populate as follows:

id=10   ip=<NetFlow sender A>
id=20   ip=<NetFlow sender B>

2) then recall the map in the config and filter on the assigned tags:

..
pre_tag_map: /path/to/pretag.map
!
plugins: mysql[sender_A], mysql[sender_B]
pre_tag_filter[sender_A]: 10
pre_tag_filter[sender_B]: 20
!
sql_db[sender_A]: <MySQL DB>
sql_table[sender_A]: <MySQL table A>
!
sql_db[sender_B]: <MySQL DB>
sql_table[sender_B]: <MySQL table B>
..

Cheers,
Paolo


On Mon, Jun 17, 2013 at 04:48:57PM +0200, Andras Horvai wrote:
> Hi,
> 
> I try to setup pmacct to collect netflow data. I will have 2 netflow sender.
> I will use mysql as RDBMS backend and nfacctd as a daemon to collect.
> Is there a way to send the netflow exports to 2 different databases or
> tables by sender?
> Let's say I have router1 who sends netflow to db1 (or table1) and I have
> router2 who would send netflow data to db2 (or table2).
> 
> Thanks,
> 
> Andras

> _______________________________________________
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists


_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to