Skip to main content

input_configuration_logstashes

Creates, updates, deletes, gets or lists an input_configuration_logstashes resource.

Overview​

Nameinput_configuration_logstashes
TypeResource
Idovh.dbaas_logs.input_configuration_logstashes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
filter_sectionstringThe filter section of logstash.conf (wire: filterSection)
input_sectionstringThe filter section of logstash.conf (wire: inputSection)
pattern_sectionstringThe list of customs Grok patterns (wire: patternSection)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectinput_id, service_nameReturns the Logstash configuration of the Logs Data Platform service.
updateupdateinput_id, service_name, input_sectionUpdates the Logstash configuration of the Logs Data Platform service.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
input_idstring (uuid)Input ID (wire: inputId)
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the Logstash configuration of the Logs Data Platform service.

SELECT
filter_section,
input_section,
pattern_section
FROM ovh.dbaas_logs.input_configuration_logstashes
WHERE input_id = '{{ input_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Updates the Logstash configuration of the Logs Data Platform service.

UPDATE ovh.dbaas_logs.input_configuration_logstashes
SET
filter_section = '{{ filter_section }}',
input_section = '{{ input_section }}',
pattern_section = '{{ pattern_section }}'
WHERE
input_id = '{{ input_id }}' --required
AND service_name = '{{ service_name }}' --required
AND input_section = '{{ input_section }}' --required
RETURNING
alias_id,
dashboard_id,
encryption_key_id,
index_id,
input_id,
operation_id,
osd_id,
role_id,
stream_id,
subscription_id,
tenant_id,
token_id,
service_name,
created_at,
state,
updated_at;