|
| 1 | +<!-- |
| 2 | + Receive flow data over UDP, convert them into JSON and provide them as |
| 3 | + a server on local port |
| 4 | +--> |
| 5 | +<ipfixcol2> |
| 6 | + <!-- Input plugins --> |
| 7 | + <inputPlugins> |
| 8 | + <input> |
| 9 | + <name>UDP collector</name> |
| 10 | + <plugin>udp</plugin> |
| 11 | + <params> |
| 12 | + <!-- List on port 4739 --> |
| 13 | + <localPort>4739</localPort> |
| 14 | + <!-- Bind to all local adresses --> |
| 15 | + <localIPAddress></localIPAddress> |
| 16 | + </params> |
| 17 | + </input> |
| 18 | + </inputPlugins> |
| 19 | + |
| 20 | + <!-- Output plugins --> |
| 21 | + <outputPlugins> |
| 22 | + <output> |
| 23 | + <name>JSON output</name> |
| 24 | + <plugin>json-kafka</plugin> |
| 25 | + <params> |
| 26 | + <!-- JSON format paramters --> |
| 27 | + <tcpFlags>formatted</tcpFlags> |
| 28 | + <timestamp>formatted</timestamp> |
| 29 | + <protocol>formatted</protocol> |
| 30 | + <ignoreUnknown>true</ignoreUnknown> |
| 31 | + <ignoreOptions>true</ignoreOptions> |
| 32 | + <nonPrintableChar>true</nonPrintableChar> |
| 33 | + <octetArrayAsUint>true</octetArrayAsUint> |
| 34 | + <numericNames>false</numericNames> |
| 35 | + <splitBiflow>false</splitBiflow> |
| 36 | + <detailedInfo>false</detailedInfo> |
| 37 | + <templateInfo>false</templateInfo> |
| 38 | + |
| 39 | + <!-- Output methods --> |
| 40 | + <outputs> |
| 41 | + <kafka> |
| 42 | + <name>Send to Kafka</name> |
| 43 | + <brokers>127.0.0.1</brokers> |
| 44 | + <topic>ipfix</topic> |
| 45 | + <blocking>false</blocking> |
| 46 | + <partition>unassigned</partition> |
| 47 | + |
| 48 | + <!-- Zero or more additional properties --> |
| 49 | + <property> |
| 50 | + <key>compression.codec</key> |
| 51 | + <value>lz4</value> |
| 52 | + </property> |
| 53 | + </kafka> |
| 54 | + </outputs> |
| 55 | + </params> |
| 56 | + </output> |
| 57 | + </outputPlugins> |
| 58 | +</ipfixcol2> |
0 commit comments