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


{
    "auto_discovered": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "coalesce_events": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "credibility": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "disconnected_log_collector_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "enabled": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "filter": "String",
    "gateway": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "group_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "internal": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "language_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "log_source_extension_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "parsing_order": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "protocol_type_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "requires_deploy": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "sending_ip": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "status": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "store_event_payload": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "target_event_collector_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "type_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "wincollect_external_destination_id": [
        {
            "count": 42,
            "value": "String"
        }
    ],
    "wincollect_internal_destination_id": [
        {
            "count": 42,
            "value": "String"
        }
    ]
}