diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3bec741a12..8efc3e0e68 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -46462,6 +46462,15 @@ components: description: Optional name of the Splunk index where logs are written. example: main type: string + indexed_fields: + description: List of log field names to send as indexed fields to Splunk + HEC. Available only when `encoding` is `json`. + example: + - service + - host + items: + type: string + type: array inputs: description: A list of component IDs whose output is used as the `input` for this component. diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py index 2be1eb069d..1fe985ad30 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py @@ -185,6 +185,9 @@ def __init__(self, **kwargs): :param index: Optional name of the Splunk index where logs are written. :type index: str, optional + :param indexed_fields: List of log field names to send as indexed fields to Splunk HEC. Available only when `encoding` is `json`. + :type indexed_fields: [str], optional + :param sourcetype: The Splunk sourcetype to assign to log events. :type sourcetype: str, optional diff --git a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_destination.py index ab381977ff..bde81cfef4 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_destination.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_destination.py @@ -50,6 +50,7 @@ def openapi_types(_): "endpoint_url_key": (str,), "id": (str,), "index": (str,), + "indexed_fields": ([str],), "inputs": ([str],), "sourcetype": (str,), "token_key": (str,), @@ -63,6 +64,7 @@ def openapi_types(_): "endpoint_url_key": "endpoint_url_key", "id": "id", "index": "index", + "indexed_fields": "indexed_fields", "inputs": "inputs", "sourcetype": "sourcetype", "token_key": "token_key", @@ -85,6 +87,7 @@ def __init__( encoding: Union[ObservabilityPipelineSplunkHecDestinationEncoding, UnsetType] = unset, endpoint_url_key: Union[str, UnsetType] = unset, index: Union[str, UnsetType] = unset, + indexed_fields: Union[List[str], UnsetType] = unset, sourcetype: Union[str, UnsetType] = unset, token_key: Union[str, UnsetType] = unset, **kwargs, @@ -113,6 +116,9 @@ def __init__( :param index: Optional name of the Splunk index where logs are written. :type index: str, optional + :param indexed_fields: List of log field names to send as indexed fields to Splunk HEC. Available only when ``encoding`` is ``json``. + :type indexed_fields: [str], optional + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. :type inputs: [str] @@ -135,6 +141,8 @@ def __init__( kwargs["endpoint_url_key"] = endpoint_url_key if index is not unset: kwargs["index"] = index + if indexed_fields is not unset: + kwargs["indexed_fields"] = indexed_fields if sourcetype is not unset: kwargs["sourcetype"] = sourcetype if token_key is not unset: