Package com.datadog.api.client.v2.model
Class ObservabilityPipelineSplunkHecDestination
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelineSplunkHecDestination
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSplunkHecDestination
extends Object
The
splunk_hec destination forwards logs to Splunk using the HTTP Event Collector
(HEC).
Supported pipeline types: logs
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionObservabilityPipelineSplunkHecDestination(String id, List<String> inputs, ObservabilityPipelineSplunkHecDestinationType type) -
Method Summary
Modifier and TypeMethodDescriptionaddIndexedFieldsItem(String indexedFieldsItem) addInputsItem(String inputsItem) autoExtractTimestamp(Boolean autoExtractTimestamp) endpointUrlKey(String endpointUrlKey) booleanReturn true if this ObservabilityPipelineSplunkHecDestination object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Iftrue, Splunk tries to extract timestamps from incoming log events.Configuration for buffer settings on destination components.Encoding format for log events.The Splunk HEC endpoint to send events to.Name of the environment variable or secret that holds the Splunk HEC endpoint URL.getId()The unique identifier for this component.getIndex()Optional name of the Splunk index where logs are written.List of log field names to send as indexed fields to Splunk HEC.A list of component IDs whose output is used as theinputfor this component.The Splunk sourcetype to assign to log events.Name of the environment variable or secret that holds the Splunk HEC token.Controls how the Splunk HEC token is supplied.getType()The destination type.inthashCode()indexedFields(List<String> indexedFields) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAutoExtractTimestamp(Boolean autoExtractTimestamp) voidvoidvoidvoidsetEndpointUrlKey(String endpointUrlKey) voidvoidvoidsetIndexedFields(List<String> indexedFields) voidvoidsetSourcetype(String sourcetype) voidsetTokenKey(String tokenKey) voidvoidsourcetype(String sourcetype) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AUTO_EXTRACT_TIMESTAMP
- See Also:
-
JSON_PROPERTY_BUFFER
- See Also:
-
JSON_PROPERTY_ENCODING
- See Also:
-
JSON_PROPERTY_ENDPOINT_TARGET
- See Also:
-
JSON_PROPERTY_ENDPOINT_URL_KEY
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_INDEX
- See Also:
-
JSON_PROPERTY_INDEXED_FIELDS
- See Also:
-
JSON_PROPERTY_INPUTS
- See Also:
-
JSON_PROPERTY_SOURCETYPE
- See Also:
-
JSON_PROPERTY_TOKEN_KEY
- See Also:
-
JSON_PROPERTY_TOKEN_STRATEGY
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
ObservabilityPipelineSplunkHecDestination
public ObservabilityPipelineSplunkHecDestination() -
ObservabilityPipelineSplunkHecDestination
public ObservabilityPipelineSplunkHecDestination(String id, List<String> inputs, ObservabilityPipelineSplunkHecDestinationType type)
-
-
Method Details
-
autoExtractTimestamp
-
getAutoExtractTimestamp
Iftrue, Splunk tries to extract timestamps from incoming log events. Iffalse, Splunk assigns the time the event was received. Only applies whenendpoint_targetisevent; cannot betruewhenendpoint_targetisraw.- Returns:
- autoExtractTimestamp
-
setAutoExtractTimestamp
-
buffer
-
getBuffer
Configuration for buffer settings on destination components.- Returns:
- buffer
-
setBuffer
-
encoding
public ObservabilityPipelineSplunkHecDestination encoding(ObservabilityPipelineSplunkHecDestinationEncoding encoding) -
getEncoding
Encoding format for log events.- Returns:
- encoding
-
setEncoding
-
endpointTarget
public ObservabilityPipelineSplunkHecDestination endpointTarget(ObservabilityPipelineSplunkHecDestinationEndpointTarget endpointTarget) -
getEndpointTarget
The Splunk HEC endpoint to send events to. Useeventto send structured events to the/eventendpoint, orrawto send the raw message to the/rawendpoint.- Returns:
- endpointTarget
-
setEndpointTarget
public void setEndpointTarget(ObservabilityPipelineSplunkHecDestinationEndpointTarget endpointTarget) -
endpointUrlKey
-
getEndpointUrlKey
Name of the environment variable or secret that holds the Splunk HEC endpoint URL.- Returns:
- endpointUrlKey
-
setEndpointUrlKey
-
id
-
getId
The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as theinputto downstream components).- Returns:
- id
-
setId
-
index
-
getIndex
Optional name of the Splunk index where logs are written.- Returns:
- index
-
setIndex
-
indexedFields
-
addIndexedFieldsItem
-
getIndexedFields
List of log field names to send as indexed fields to Splunk HEC. Available only whenencodingisjson.- Returns:
- indexedFields
-
setIndexedFields
-
inputs
-
addInputsItem
-
getInputs
A list of component IDs whose output is used as theinputfor this component.- Returns:
- inputs
-
setInputs
-
sourcetype
-
getSourcetype
The Splunk sourcetype to assign to log events.- Returns:
- sourcetype
-
setSourcetype
-
tokenKey
-
getTokenKey
Name of the environment variable or secret that holds the Splunk HEC token.- Returns:
- tokenKey
-
setTokenKey
-
tokenStrategy
public ObservabilityPipelineSplunkHecDestination tokenStrategy(ObservabilityPipelineSplunkHecDestinationTokenStrategy tokenStrategy) -
getTokenStrategy
Controls how the Splunk HEC token is supplied. Usecustomto provide a token withtoken_key, orfrom_sourceto forward the token received from an upstream Splunk HEC source.- Returns:
- tokenStrategy
-
setTokenStrategy
-
type
-
getType
The destination type. Alwayssplunk_hec.- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- ObservabilityPipelineSplunkHecDestination
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this ObservabilityPipelineSplunkHecDestination object is equal to o. -
hashCode
public int hashCode() -
toString
-