Updated at: 2022-12-09 03:49:50
AnyRobot can receive logs transmitted by SNMP Trap, such as system alert events of server, network device and other devices. The specific configuration is as follows:
1. Click Data Source > Input Data > New to make New Data Input, select SNMP Trap as the input type, and configure the parameters as follows: 
Field Name   Field Description  Field Condition
Input Type Select data input protocol type: SNMP Trap -
Community The community name can be customized to match with the community name configured by the server. After editing, press Enter to generate the configuration. The length of a single Community is ≤20 characters and Chinese character is not supported.
Receive Port Custom configuration of port number Port range: 20010-20099, 514, 5140 and 162, not occupied
Encoding It defaults to UTF-8 and cannot be modified. -
Log Type Self-defined, used for adding identity to log data, and convenient for data screening and log library correlating It cannot begin with characters such as ~` ! @ $ ^ & () _ =; capitalization is not allowed!
Log Tag Self-defined, used for adding identity to log data, and convenient for data screening Up to 5 tags can be added.
2. After configuration, click Save.
Note:
1. For data aggregation of multiple hosts, if Receive Port settings are consistent, you only need to add the corresponding community name. Otherwise, you need to create a new entry and change the corresponding port and community name;
2. To receive SNMP Trap log, SNMP Trap Attribute and Receive Address and Port must be configured first as follows: 
1) Log in to the device server address, enter the Log Alert page, configure SNMP Trap Attribute, Address and Port;
• Version: Only V1 and V2C version is supported. V3 is not supported temporarily;
• Trap Receive Address: AnyRobot address for receiving data;
• Trap Port: The AnyRobot data input port for receiving SNMP Trap data, recommended to be 162;
2) After completing the parameter configuration, click OK.