aptible.LogDrain
Explore with Pulumi AI
# Aptible Log Drain Resource
This resource is used to create and manage Log Drains running on Aptible Deploy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aptible from "@pulumi/aptible";
const syslogLogDrain = new aptible.LogDrain("syslogLogDrain", {
drainHost: "syslog.aptible.com",
drainPort: 1234,
drainType: "syslog_tls_tcp",
envId: 123,
handle: "syslog_log_drain",
});
import pulumi
import pulumi_aptible as aptible
syslog_log_drain = aptible.LogDrain("syslogLogDrain",
drain_host="syslog.aptible.com",
drain_port=1234,
drain_type="syslog_tls_tcp",
env_id=123,
handle="syslog_log_drain")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/aptible/aptible"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aptible.NewLogDrain(ctx, "syslogLogDrain", &aptible.LogDrainArgs{
DrainHost: pulumi.String("syslog.aptible.com"),
DrainPort: pulumi.Float64(1234),
DrainType: pulumi.String("syslog_tls_tcp"),
EnvId: pulumi.Float64(123),
Handle: pulumi.String("syslog_log_drain"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aptible = Pulumi.Aptible;
return await Deployment.RunAsync(() =>
{
var syslogLogDrain = new Aptible.LogDrain("syslogLogDrain", new()
{
DrainHost = "syslog.aptible.com",
DrainPort = 1234,
DrainType = "syslog_tls_tcp",
EnvId = 123,
Handle = "syslog_log_drain",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aptible.LogDrain;
import com.pulumi.aptible.LogDrainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var syslogLogDrain = new LogDrain("syslogLogDrain", LogDrainArgs.builder()
.drainHost("syslog.aptible.com")
.drainPort("1234")
.drainType("syslog_tls_tcp")
.envId(123)
.handle("syslog_log_drain")
.build());
}
}
resources:
syslogLogDrain:
type: aptible:LogDrain
properties:
drainHost: syslog.aptible.com
drainPort: '1234'
drainType: syslog_tls_tcp
envId: 123
handle: syslog_log_drain
import * as pulumi from "@pulumi/pulumi";
import * as aptible from "@pulumi/aptible";
const httpLogDrain = new aptible.LogDrain("httpLogDrain", {
drainApps: false,
drainProxies: true,
drainType: "https_post",
envId: 123,
handle: "http_log_drain",
url: "https://test.aptible.com",
});
import pulumi
import pulumi_aptible as aptible
http_log_drain = aptible.LogDrain("httpLogDrain",
drain_apps=False,
drain_proxies=True,
drain_type="https_post",
env_id=123,
handle="http_log_drain",
url="https://test.aptible.com")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/aptible/aptible"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aptible.NewLogDrain(ctx, "httpLogDrain", &aptible.LogDrainArgs{
DrainApps: pulumi.Bool(false),
DrainProxies: pulumi.Bool(true),
DrainType: pulumi.String("https_post"),
EnvId: pulumi.Float64(123),
Handle: pulumi.String("http_log_drain"),
Url: pulumi.String("https://test.aptible.com"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aptible = Pulumi.Aptible;
return await Deployment.RunAsync(() =>
{
var httpLogDrain = new Aptible.LogDrain("httpLogDrain", new()
{
DrainApps = false,
DrainProxies = true,
DrainType = "https_post",
EnvId = 123,
Handle = "http_log_drain",
Url = "https://test.aptible.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aptible.LogDrain;
import com.pulumi.aptible.LogDrainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var httpLogDrain = new LogDrain("httpLogDrain", LogDrainArgs.builder()
.drainApps(false)
.drainProxies(true)
.drainType("https_post")
.envId(123)
.handle("http_log_drain")
.url("https://test.aptible.com")
.build());
}
}
resources:
httpLogDrain:
type: aptible:LogDrain
properties:
drainApps: false
drainProxies: true
drainType: https_post
envId: 123
handle: http_log_drain
url: https://test.aptible.com
Create LogDrain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogDrain(name: string, args: LogDrainArgs, opts?: CustomResourceOptions);
@overload
def LogDrain(resource_name: str,
args: LogDrainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogDrain(resource_name: str,
opts: Optional[ResourceOptions] = None,
drain_type: Optional[str] = None,
handle: Optional[str] = None,
env_id: Optional[float] = None,
drain_ephemeral_sessions: Optional[bool] = None,
drain_username: Optional[str] = None,
drain_host: Optional[str] = None,
drain_password: Optional[str] = None,
drain_port: Optional[float] = None,
drain_proxies: Optional[bool] = None,
drain_databases: Optional[bool] = None,
aptible_log_drain_id: Optional[str] = None,
drain_apps: Optional[bool] = None,
database_id: Optional[float] = None,
logging_token: Optional[str] = None,
pipeline: Optional[str] = None,
tags: Optional[str] = None,
token: Optional[str] = None,
url: Optional[str] = None)
func NewLogDrain(ctx *Context, name string, args LogDrainArgs, opts ...ResourceOption) (*LogDrain, error)
public LogDrain(string name, LogDrainArgs args, CustomResourceOptions? opts = null)
public LogDrain(String name, LogDrainArgs args)
public LogDrain(String name, LogDrainArgs args, CustomResourceOptions options)
type: aptible:LogDrain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LogDrainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LogDrainArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LogDrainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogDrainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogDrainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var logDrainResource = new Aptible.LogDrain("logDrainResource", new()
{
DrainType = "string",
Handle = "string",
EnvId = 0,
DrainEphemeralSessions = false,
DrainUsername = "string",
DrainHost = "string",
DrainPassword = "string",
DrainPort = 0,
DrainProxies = false,
DrainDatabases = false,
AptibleLogDrainId = "string",
DrainApps = false,
DatabaseId = 0,
LoggingToken = "string",
Pipeline = "string",
Tags = "string",
Token = "string",
Url = "string",
});
example, err := aptible.NewLogDrain(ctx, "logDrainResource", &aptible.LogDrainArgs{
DrainType: pulumi.String("string"),
Handle: pulumi.String("string"),
EnvId: pulumi.Float64(0),
DrainEphemeralSessions: pulumi.Bool(false),
DrainUsername: pulumi.String("string"),
DrainHost: pulumi.String("string"),
DrainPassword: pulumi.String("string"),
DrainPort: pulumi.Float64(0),
DrainProxies: pulumi.Bool(false),
DrainDatabases: pulumi.Bool(false),
AptibleLogDrainId: pulumi.String("string"),
DrainApps: pulumi.Bool(false),
DatabaseId: pulumi.Float64(0),
LoggingToken: pulumi.String("string"),
Pipeline: pulumi.String("string"),
Tags: pulumi.String("string"),
Token: pulumi.String("string"),
Url: pulumi.String("string"),
})
var logDrainResource = new LogDrain("logDrainResource", LogDrainArgs.builder()
.drainType("string")
.handle("string")
.envId(0)
.drainEphemeralSessions(false)
.drainUsername("string")
.drainHost("string")
.drainPassword("string")
.drainPort(0)
.drainProxies(false)
.drainDatabases(false)
.aptibleLogDrainId("string")
.drainApps(false)
.databaseId(0)
.loggingToken("string")
.pipeline("string")
.tags("string")
.token("string")
.url("string")
.build());
log_drain_resource = aptible.LogDrain("logDrainResource",
drain_type="string",
handle="string",
env_id=0,
drain_ephemeral_sessions=False,
drain_username="string",
drain_host="string",
drain_password="string",
drain_port=0,
drain_proxies=False,
drain_databases=False,
aptible_log_drain_id="string",
drain_apps=False,
database_id=0,
logging_token="string",
pipeline="string",
tags="string",
token="string",
url="string")
const logDrainResource = new aptible.LogDrain("logDrainResource", {
drainType: "string",
handle: "string",
envId: 0,
drainEphemeralSessions: false,
drainUsername: "string",
drainHost: "string",
drainPassword: "string",
drainPort: 0,
drainProxies: false,
drainDatabases: false,
aptibleLogDrainId: "string",
drainApps: false,
databaseId: 0,
loggingToken: "string",
pipeline: "string",
tags: "string",
token: "string",
url: "string",
});
type: aptible:LogDrain
properties:
aptibleLogDrainId: string
databaseId: 0
drainApps: false
drainDatabases: false
drainEphemeralSessions: false
drainHost: string
drainPassword: string
drainPort: 0
drainProxies: false
drainType: string
drainUsername: string
envId: 0
handle: string
loggingToken: string
pipeline: string
tags: string
token: string
url: string
LogDrain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LogDrain resource accepts the following input properties:
- Drain
Type string - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - Env
Id double - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - Handle string
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - Aptible
Log stringDrain Id - Database
Id double - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - Drain
Apps bool - If the drain should collect logs from apps.
- Drain
Databases bool - If the drain should collect logs from databases.
- Drain
Ephemeral boolSessions - If the drain should collect logs from SSH sessions.
- Drain
Host string - The host name of the destination to send logs to.
- Drain
Password string - Drain
Port double - The port for the destination where logs drains will be sent.
- Drain
Proxies bool - If the drain should collect logs from Endpoints.
- Drain
Username string - Logging
Token string - The logging token prepended to logs by
syslog
andpapertrail
drains. - Pipeline string
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - string
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - Token string
- The API token used by
logdna
anddatadog
drains. - Url string
- The destination url where the logs will be sent.
- Drain
Type string - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - Env
Id float64 - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - Handle string
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - Aptible
Log stringDrain Id - Database
Id float64 - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - Drain
Apps bool - If the drain should collect logs from apps.
- Drain
Databases bool - If the drain should collect logs from databases.
- Drain
Ephemeral boolSessions - If the drain should collect logs from SSH sessions.
- Drain
Host string - The host name of the destination to send logs to.
- Drain
Password string - Drain
Port float64 - The port for the destination where logs drains will be sent.
- Drain
Proxies bool - If the drain should collect logs from Endpoints.
- Drain
Username string - Logging
Token string - The logging token prepended to logs by
syslog
andpapertrail
drains. - Pipeline string
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - string
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - Token string
- The API token used by
logdna
anddatadog
drains. - Url string
- The destination url where the logs will be sent.
- drain
Type String - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - env
Id Double - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle String
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - aptible
Log StringDrain Id - database
Id Double - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain
Apps Boolean - If the drain should collect logs from apps.
- drain
Databases Boolean - If the drain should collect logs from databases.
- drain
Ephemeral BooleanSessions - If the drain should collect logs from SSH sessions.
- drain
Host String - The host name of the destination to send logs to.
- drain
Password String - drain
Port Double - The port for the destination where logs drains will be sent.
- drain
Proxies Boolean - If the drain should collect logs from Endpoints.
- drain
Username String - logging
Token String - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline String
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - String
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token String
- The API token used by
logdna
anddatadog
drains. - url String
- The destination url where the logs will be sent.
- drain
Type string - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - env
Id number - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle string
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - aptible
Log stringDrain Id - database
Id number - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain
Apps boolean - If the drain should collect logs from apps.
- drain
Databases boolean - If the drain should collect logs from databases.
- drain
Ephemeral booleanSessions - If the drain should collect logs from SSH sessions.
- drain
Host string - The host name of the destination to send logs to.
- drain
Password string - drain
Port number - The port for the destination where logs drains will be sent.
- drain
Proxies boolean - If the drain should collect logs from Endpoints.
- drain
Username string - logging
Token string - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline string
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - string
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token string
- The API token used by
logdna
anddatadog
drains. - url string
- The destination url where the logs will be sent.
- drain_
type str - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - env_
id float - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle str
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - aptible_
log_ strdrain_ id - database_
id float - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain_
apps bool - If the drain should collect logs from apps.
- drain_
databases bool - If the drain should collect logs from databases.
- drain_
ephemeral_ boolsessions - If the drain should collect logs from SSH sessions.
- drain_
host str - The host name of the destination to send logs to.
- drain_
password str - drain_
port float - The port for the destination where logs drains will be sent.
- drain_
proxies bool - If the drain should collect logs from Endpoints.
- drain_
username str - logging_
token str - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline str
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - str
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token str
- The API token used by
logdna
anddatadog
drains. - url str
- The destination url where the logs will be sent.
- drain
Type String - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - env
Id Number - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle String
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - aptible
Log StringDrain Id - database
Id Number - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain
Apps Boolean - If the drain should collect logs from apps.
- drain
Databases Boolean - If the drain should collect logs from databases.
- drain
Ephemeral BooleanSessions - If the drain should collect logs from SSH sessions.
- drain
Host String - The host name of the destination to send logs to.
- drain
Password String - drain
Port Number - The port for the destination where logs drains will be sent.
- drain
Proxies Boolean - If the drain should collect logs from Endpoints.
- drain
Username String - logging
Token String - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline String
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - String
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token String
- The API token used by
logdna
anddatadog
drains. - url String
- The destination url where the logs will be sent.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogDrain resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Drain doubleId - The unique ID for the log drain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Drain float64Id - The unique ID for the log drain.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Drain DoubleId - The unique ID for the log drain.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Drain numberId - The unique ID for the log drain.
- id str
- The provider-assigned unique ID for this managed resource.
- log_
drain_ floatid - The unique ID for the log drain.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Drain NumberId - The unique ID for the log drain.
Look up Existing LogDrain Resource
Get an existing LogDrain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LogDrainState, opts?: CustomResourceOptions): LogDrain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aptible_log_drain_id: Optional[str] = None,
database_id: Optional[float] = None,
drain_apps: Optional[bool] = None,
drain_databases: Optional[bool] = None,
drain_ephemeral_sessions: Optional[bool] = None,
drain_host: Optional[str] = None,
drain_password: Optional[str] = None,
drain_port: Optional[float] = None,
drain_proxies: Optional[bool] = None,
drain_type: Optional[str] = None,
drain_username: Optional[str] = None,
env_id: Optional[float] = None,
handle: Optional[str] = None,
log_drain_id: Optional[float] = None,
logging_token: Optional[str] = None,
pipeline: Optional[str] = None,
tags: Optional[str] = None,
token: Optional[str] = None,
url: Optional[str] = None) -> LogDrain
func GetLogDrain(ctx *Context, name string, id IDInput, state *LogDrainState, opts ...ResourceOption) (*LogDrain, error)
public static LogDrain Get(string name, Input<string> id, LogDrainState? state, CustomResourceOptions? opts = null)
public static LogDrain get(String name, Output<String> id, LogDrainState state, CustomResourceOptions options)
resources: _: type: aptible:LogDrain get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aptible
Log stringDrain Id - Database
Id double - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - Drain
Apps bool - If the drain should collect logs from apps.
- Drain
Databases bool - If the drain should collect logs from databases.
- Drain
Ephemeral boolSessions - If the drain should collect logs from SSH sessions.
- Drain
Host string - The host name of the destination to send logs to.
- Drain
Password string - Drain
Port double - The port for the destination where logs drains will be sent.
- Drain
Proxies bool - If the drain should collect logs from Endpoints.
- Drain
Type string - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - Drain
Username string - Env
Id double - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - Handle string
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - Log
Drain doubleId - The unique ID for the log drain.
- Logging
Token string - The logging token prepended to logs by
syslog
andpapertrail
drains. - Pipeline string
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - string
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - Token string
- The API token used by
logdna
anddatadog
drains. - Url string
- The destination url where the logs will be sent.
- Aptible
Log stringDrain Id - Database
Id float64 - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - Drain
Apps bool - If the drain should collect logs from apps.
- Drain
Databases bool - If the drain should collect logs from databases.
- Drain
Ephemeral boolSessions - If the drain should collect logs from SSH sessions.
- Drain
Host string - The host name of the destination to send logs to.
- Drain
Password string - Drain
Port float64 - The port for the destination where logs drains will be sent.
- Drain
Proxies bool - If the drain should collect logs from Endpoints.
- Drain
Type string - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - Drain
Username string - Env
Id float64 - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - Handle string
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - Log
Drain float64Id - The unique ID for the log drain.
- Logging
Token string - The logging token prepended to logs by
syslog
andpapertrail
drains. - Pipeline string
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - string
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - Token string
- The API token used by
logdna
anddatadog
drains. - Url string
- The destination url where the logs will be sent.
- aptible
Log StringDrain Id - database
Id Double - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain
Apps Boolean - If the drain should collect logs from apps.
- drain
Databases Boolean - If the drain should collect logs from databases.
- drain
Ephemeral BooleanSessions - If the drain should collect logs from SSH sessions.
- drain
Host String - The host name of the destination to send logs to.
- drain
Password String - drain
Port Double - The port for the destination where logs drains will be sent.
- drain
Proxies Boolean - If the drain should collect logs from Endpoints.
- drain
Type String - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - drain
Username String - env
Id Double - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle String
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - log
Drain DoubleId - The unique ID for the log drain.
- logging
Token String - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline String
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - String
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token String
- The API token used by
logdna
anddatadog
drains. - url String
- The destination url where the logs will be sent.
- aptible
Log stringDrain Id - database
Id number - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain
Apps boolean - If the drain should collect logs from apps.
- drain
Databases boolean - If the drain should collect logs from databases.
- drain
Ephemeral booleanSessions - If the drain should collect logs from SSH sessions.
- drain
Host string - The host name of the destination to send logs to.
- drain
Password string - drain
Port number - The port for the destination where logs drains will be sent.
- drain
Proxies boolean - If the drain should collect logs from Endpoints.
- drain
Type string - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - drain
Username string - env
Id number - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle string
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - log
Drain numberId - The unique ID for the log drain.
- logging
Token string - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline string
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - string
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token string
- The API token used by
logdna
anddatadog
drains. - url string
- The destination url where the logs will be sent.
- aptible_
log_ strdrain_ id - database_
id float - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain_
apps bool - If the drain should collect logs from apps.
- drain_
databases bool - If the drain should collect logs from databases.
- drain_
ephemeral_ boolsessions - If the drain should collect logs from SSH sessions.
- drain_
host str - The host name of the destination to send logs to.
- drain_
password str - drain_
port float - The port for the destination where logs drains will be sent.
- drain_
proxies bool - If the drain should collect logs from Endpoints.
- drain_
type str - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - drain_
username str - env_
id float - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle str
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - log_
drain_ floatid - The unique ID for the log drain.
- logging_
token str - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline str
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - str
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token str
- The API token used by
logdna
anddatadog
drains. - url str
- The destination url where the logs will be sent.
- aptible
Log StringDrain Id - database
Id Number - The ID of the elasticsearch database that
elasticsearch_database
drains should send logs to. - drain
Apps Boolean - If the drain should collect logs from apps.
- drain
Databases Boolean - If the drain should collect logs from databases.
- drain
Ephemeral BooleanSessions - If the drain should collect logs from SSH sessions.
- drain
Host String - The host name of the destination to send logs to.
- drain
Password String - drain
Port Number - The port for the destination where logs drains will be sent.
- drain
Proxies Boolean - If the drain should collect logs from Endpoints.
- drain
Type String - The type of log drain:
syslog_tls_tcp
,elasticsearch_database
,https_post
,sumologic
,logdna
,datadog
,papertrail
. - drain
Username String - env
Id Number - The ID of the environment you would like to create your
Log Drain in. See main provider documentation for more on how to determine
what you should use for
env_id
. - handle String
- The handle for the log drain. This must be all lower
case, and only contain letters, numbers,
-
,_
, or.
. - log
Drain NumberId - The unique ID for the log drain.
- logging
Token String - The logging token prepended to logs by
syslog
andpapertrail
drains. - pipeline String
- The ID of the elasticsearch
ingest pipeline
to use with
elasticsearch_database
drains. - String
- A comma-separated list of additional tags to apply logs collected by
logdna
anddatadog
drains. - token String
- The API token used by
logdna
anddatadog
drains. - url String
- The destination url where the logs will be sent.
Import
Existing log drains can be imported using the log drain ID. For example:
bash
$ pulumi import aptible:index/logDrain:LogDrain example-log-drain <ID>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- aptible aptible/terraform-provider-aptible
- License
- Notes
- This Pulumi package is based on the
aptible
Terraform Provider.