UDP Source
The UDP Source origin reads messages from one or more UDP ports. For information about supported versions, see Supported Systems and Versions in the Data Collector documentation.
To use multiple threads for pipeline processing, use the UDP Multithreaded Source. For a discussion about the differences between the two origins, see Comparing UDP Source Origins.
When processing NetFlow messages, the stage generates different records based on the NetFlow version. When processing NetFlow 9, the records are generated based on the NetFlow 9 configuration properties. For more information, see NetFlow Data Processing.
The origin can also read binary or character-based raw data.
When a pipeline stops, the origin notes where it stops reading. When the pipeline starts again, the origin continues processing from where it stopped by default. You can reset the origin to process all requested data.
When you configure UDP Source, you specify the ports to use and the batch size and wait time. When epoll is available, you can specify the number of receiver threads to use to increase the throughput of packets to the pipeline.
You also specify the data format for the data, then configure any related properties.
Processing Raw Data
Use the Raw/Separated Data data format to enable the UDP Source origin to generate records from binary or character-based raw data.
When processing raw data, the origin can generate a record for each UDP packet that it receives. Or, if you specify a separator character, then the origin can generate multiple records from each UDP packet.
When generating multiple records, you specify the multiple value behavior: one record with only the first value, one record with all values as a list, or multiple records with one record for each value.
You can optionally specify an output field to use for the data. When not specified, the origin writes the raw data to the root field.
You might use the Raw/Separated Data data format to write raw data to a field that you later process using the Data Parser processor. This allows you to retain the raw data for another use.
Receiver Threads
Receiver threads are used to pass data from the UDP source system to the origin. By default, the origin uses a single receiver thread.
You can configure the UDP Source origin to use additional receiver threads when Data Collector runs on a machine enabled for epoll. Epoll requires native libraries and is only available when Data Collector runs on recent versions of 64-bit Linux. When you enable multiple receiver threads, you increase the volume of data that can be passed to the origin at one time.
To use additional receiver threads, select the Use Native Transports (epoll) property, and then configure Number of Receiver Threads.
Configuring a UDP Source
Configure a UDP Source origin to process messages from a UDP source.