Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

POST /config/event_sources/log_source_management/ log_source_statistics

 

Creates log source statistics

Log source statistics contains the following fields:

  • filter - String - The optional log source filter that specifies which log sources are included in the statistics. The syntax of this filter is identical to the one used by the Log Source API.

  • type_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's type_id field.

  • protocol_type_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's protocol_type_id field.

  • enabled - Array of LogSourceFieldValueStatistic - Statistics for the log source's enabled field.

  • gateway - Array of LogSourceFieldValueStatistic - Statistics for the log source's gateway field.

  • internal - Array of LogSourceFieldValueStatistic - Statistics for the log source's internal field.

  • credibility - Array of LogSourceFieldValueStatistic - Statistics for the log source's credibility field.

  • target_event_collector_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's target_event_collector_id field.

  • disconnected_log_collector_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's disconnected_log_collector_id field.

  • coalesce_events - Array of LogSourceFieldValueStatistic - Statistics for the log source's coalesce_events field.

  • store_event_payload - Array of LogSourceFieldValueStatistic - Statistics for the log source's store_event_payload field.

  • log_source_extension_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's log_source_extension_id field.

  • language_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's language_id field.

  • group_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's group_ids field.

  • requires_deploy Array of LogSourceFieldValueStatistic - Statistics for the log source's requires_deploy field.

  • status - Array of LogSourceFieldValueStatistic - Statistics for the log source's status field.

  • auto_discovered - Array of LogSourceFieldValueStatistic - Statistics for the log source's auto_discovered field.

  • wincollect_internal_destination_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's wincollect_internal_destination_id field.

  • wincollect_external_destination_id - Array of LogSourceFieldValueStatistic - Statistics for the log source's wincollect_external_destination_ids field.

  • sending_ip - Array of LogSourceFieldValueStatistic - Statistics for the log source's sending_ip field.

LogSourceFieldValueStatistic contains the following fields:

  • value - String - The field value.

  • count - Integer - The number of log sources that have the given field value.

Table 1: POST /config/event_sources/log_source_management/log_source_statistics Resource Details

MIME Type

application/json

Table 2: POST /config/event_sources/log_source_management/log_source_statistics Request Parameter Details

Parameter

Type

Optionality

Data Type

MIME Type

Description

fields

header

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3: POST /config/event_sources/log_source_management/log_source_statistics Request Body Details

Parameter

Data Type

MIME Type

Description

Sample

statistics

Object

application/json

The statistics object. Only filter field is modifiable. All other fields are ignored.

{ "filter": "String" }

Table 4: POST /config/event_sources/log_source_management/log_source_statistics Response Codes

HTTP Response Code

Unique Code

Description

200

 

The log source statistics was created successfully.

422

1001

An invalid filter criteria was specified.

500

1003

An error occurred during the attempt to create the log source.

Response Description

The log source statistics.

Response Sample