The Splunk Event Collector microservice sends application events to a Splunk deployment using HTTP or HTTPS (Secure HTTP) protocols. It generates tokens for Authentication enabling the HTTP client to send data to the SplunkEventCollector in a specific format, thereby eliminating an intermediate microservice to send application events.
Configuration and Testing
Component Configurations
The following attributes can be configured in the Component Configuration panel as shown below.
Figure1:ComponentConfigurationproperties
Process Message Based on Property
The property helps components to skip certain messages from processing.
If this attribute is enabled, the service tries to validate the input received. If disabled, service will not validate the input. For more details, refer Validate Input section under Interaction Configurations in Common Configurations page.
Performance increases Validate Input option is disabled, but it may cause undesired results in case the input XML is not valid.
Error handling configuration
The remedial actions to be taken when a particular error occurs can be configured using this attribute.
Click the ellipsis button against this property to configure Error Handling properties for different types of Errors. By default, the options Log to error logs, Stop service and Send to error port are enabled.
To send all events received by the component as raw events.
Batch Events
Send request in batched events.
Batch Size
Number of events in a batch.
SSL Configurations
Click the SSL Configurations ellipsis button to launch the editor to set SSL configurations.
Refer the SSL Security section for more information.
Threadpool Configuration
This property is used when there is a need to process messages in parallel within the component, still maintaining the sequence from the external perspective.
Limit the usage of the Threadpool Configuration property only in circumstances as mentioned above.
If sequential processing is not required, please use sessions on the input port.
Click the Threadpool Configuration ellipsis button to configure the Threadpool Configuration properties.
Figure4:Threadpool Configuration
Enable Thread Pool
Enable this option to configure the properties that appear as below.
Pool Size
Number of requests to be processed in parallel within the component. Default value is '1'.
Batch Eviction Interval (in ms)
Time in milliseconds after which the threads are evicted in case of inactivity. New threads are created in place of evicted threads when new requests are received. Default value is '1000'.
Functional Demonstration
Sending the application event to the SplunkEventCollector microservice. Configure SplunkEventCollector as described in Configuration and testing section above and use the Feeder microservice and Display microservice to send a sample input and check the response respectively.