CreateLogstashPipeline#

Description#

Request to create a Logstash data pipeline in an ELK service.

Request Parameters#

  • configuration — The configuration of the data pipeline.

    • Type: String

    • Required: Yes

  • name — The name of the data pipeline.

    • Type: String

    • Required: Yes

  • serviceId — The ID of the ELK service.

    • Type: String

    • Required: Yes

Response Elements#

  • logstashPipeline — Information about the data pipeline.

Examples#

Managing PaaS services in NGN Cloud via API requires a customized version of the boto3 library:

import boto3

session = boto3.Session(
    aws_access_key_id="<AWS_ACCESS_KEY_ID>",
    aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
    region_name="ngn",
)

paas_client = session.client(
    'paas',
    endpoint_url='https://paas.cloud.ngn.com.tr/',
)

configuration = """input {
    http {
        port => 4567
        tags => events
    }
    http {
        port => 5555
        tags => api
    }
}
"""

pipeline = paas_client.create_logstash_pipeline(
    serviceId='fm-cluster-C27426C0',
    name="pipeline",
    configuration=configuration,
)

Or c2-paas utility from CROC Cloud API Client software suite:

c2-paas CreateLogstashPipeline serviceId fm-cluster-C27426C0 name pipeline configuration 'input {}'