Sumo Logic v0.14.0, May 25 23
Sumo Logic v0.14.0, May 25 23
sumologic.CloudSyslogSource
Explore with Pulumi AI
Provides a Sumo Logic Cloud Syslog source.
IMPORTANT: The token is stored in plain-text in the state. This is a potential security issue.
Attributes reference
The following attributes are exported:
id
- The internal ID of the source.token
- The token to use for sending data to this source.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() =>
{
var collector = new SumoLogic.Collector("collector", new()
{
Description = "Just testing this",
});
var cloudsyslogSource = new SumoLogic.CloudSyslogSource("cloudsyslogSource", new()
{
Category = "my/source/category",
CollectorId = collector.Id,
Description = "My description",
});
});
package main
import (
"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
collector, err := sumologic.NewCollector(ctx, "collector", &sumologic.CollectorArgs{
Description: pulumi.String("Just testing this"),
})
if err != nil {
return err
}
_, err = sumologic.NewCloudSyslogSource(ctx, "cloudsyslogSource", &sumologic.CloudSyslogSourceArgs{
Category: pulumi.String("my/source/category"),
CollectorId: collector.ID(),
Description: pulumi.String("My description"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Collector;
import com.pulumi.sumologic.CollectorArgs;
import com.pulumi.sumologic.CloudSyslogSource;
import com.pulumi.sumologic.CloudSyslogSourceArgs;
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 collector = new Collector("collector", CollectorArgs.builder()
.description("Just testing this")
.build());
var cloudsyslogSource = new CloudSyslogSource("cloudsyslogSource", CloudSyslogSourceArgs.builder()
.category("my/source/category")
.collectorId(collector.id())
.description("My description")
.build());
}
}
import pulumi
import pulumi_sumologic as sumologic
collector = sumologic.Collector("collector", description="Just testing this")
cloudsyslog_source = sumologic.CloudSyslogSource("cloudsyslogSource",
category="my/source/category",
collector_id=collector.id,
description="My description")
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const collector = new sumologic.Collector("collector", {description: "Just testing this"});
const cloudsyslogSource = new sumologic.CloudSyslogSource("cloudsyslogSource", {
category: "my/source/category",
collectorId: collector.id,
description: "My description",
});
resources:
cloudsyslogSource:
type: sumologic:CloudSyslogSource
properties:
category: my/source/category
collectorId: ${collector.id}
description: My description
collector:
type: sumologic:Collector
properties:
description: Just testing this
Create CloudSyslogSource Resource
new CloudSyslogSource(name: string, args: CloudSyslogSourceArgs, opts?: CustomResourceOptions);
@overload
def CloudSyslogSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
automatic_date_parsing: Optional[bool] = None,
category: Optional[str] = None,
collector_id: Optional[int] = None,
content_type: Optional[str] = None,
cutoff_relative_time: Optional[str] = None,
cutoff_timestamp: Optional[int] = None,
default_date_formats: Optional[Sequence[CloudSyslogSourceDefaultDateFormatArgs]] = None,
description: Optional[str] = None,
fields: Optional[Mapping[str, str]] = None,
filters: Optional[Sequence[CloudSyslogSourceFilterArgs]] = None,
force_timezone: Optional[bool] = None,
host_name: Optional[str] = None,
manual_prefix_regexp: Optional[str] = None,
multiline_processing_enabled: Optional[bool] = None,
name: Optional[str] = None,
timezone: Optional[str] = None,
use_autoline_matching: Optional[bool] = None)
@overload
def CloudSyslogSource(resource_name: str,
args: CloudSyslogSourceArgs,
opts: Optional[ResourceOptions] = None)
func NewCloudSyslogSource(ctx *Context, name string, args CloudSyslogSourceArgs, opts ...ResourceOption) (*CloudSyslogSource, error)
public CloudSyslogSource(string name, CloudSyslogSourceArgs args, CustomResourceOptions? opts = null)
public CloudSyslogSource(String name, CloudSyslogSourceArgs args)
public CloudSyslogSource(String name, CloudSyslogSourceArgs args, CustomResourceOptions options)
type: sumologic:CloudSyslogSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudSyslogSourceArgs
- 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 CloudSyslogSourceArgs
- 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 CloudSyslogSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudSyslogSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudSyslogSourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CloudSyslogSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CloudSyslogSource resource accepts the following input properties:
- Collector
Id int - Automatic
Date boolParsing - Category string
- Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date List<Pulumi.Formats Sumo Logic. Inputs. Cloud Syslog Source Default Date Format Args> - Description string
- Fields Dictionary<string, string>
- Filters
List<Pulumi.
Sumo Logic. Inputs. Cloud Syslog Source Filter Args> - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Timezone string
- Use
Autoline boolMatching
- Collector
Id int - Automatic
Date boolParsing - Category string
- Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date []CloudFormats Syslog Source Default Date Format Args - Description string
- Fields map[string]string
- Filters
[]Cloud
Syslog Source Filter Args - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Timezone string
- Use
Autoline boolMatching
- collector
Id Integer - automatic
Date BooleanParsing - category String
- content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Integer - default
Date List<CloudFormats Syslog Source Default Date Format Args> - description String
- fields Map<String,String>
- filters
List<Cloud
Syslog Source Filter Args> - force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- timezone String
- use
Autoline BooleanMatching
- collector
Id number - automatic
Date booleanParsing - category string
- content
Type string - cutoff
Relative stringTime - cutoff
Timestamp number - default
Date CloudFormats Syslog Source Default Date Format Args[] - description string
- fields {[key: string]: string}
- filters
Cloud
Syslog Source Filter Args[] - force
Timezone boolean - host
Name string - manual
Prefix stringRegexp - multiline
Processing booleanEnabled - name string
- timezone string
- use
Autoline booleanMatching
- collector_
id int - automatic_
date_ boolparsing - category str
- content_
type str - cutoff_
relative_ strtime - cutoff_
timestamp int - default_
date_ Sequence[Cloudformats Syslog Source Default Date Format Args] - description str
- fields Mapping[str, str]
- filters
Sequence[Cloud
Syslog Source Filter Args] - force_
timezone bool - host_
name str - manual_
prefix_ strregexp - multiline_
processing_ boolenabled - name str
- timezone str
- use_
autoline_ boolmatching
- collector
Id Number - automatic
Date BooleanParsing - category String
- content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Number - default
Date List<Property Map>Formats - description String
- fields Map<String>
- filters List<Property Map>
- force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- timezone String
- use
Autoline BooleanMatching
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudSyslogSource resource produces the following output properties:
Look up Existing CloudSyslogSource Resource
Get an existing CloudSyslogSource 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?: CloudSyslogSourceState, opts?: CustomResourceOptions): CloudSyslogSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
automatic_date_parsing: Optional[bool] = None,
category: Optional[str] = None,
collector_id: Optional[int] = None,
content_type: Optional[str] = None,
cutoff_relative_time: Optional[str] = None,
cutoff_timestamp: Optional[int] = None,
default_date_formats: Optional[Sequence[CloudSyslogSourceDefaultDateFormatArgs]] = None,
description: Optional[str] = None,
fields: Optional[Mapping[str, str]] = None,
filters: Optional[Sequence[CloudSyslogSourceFilterArgs]] = None,
force_timezone: Optional[bool] = None,
host_name: Optional[str] = None,
manual_prefix_regexp: Optional[str] = None,
multiline_processing_enabled: Optional[bool] = None,
name: Optional[str] = None,
timezone: Optional[str] = None,
token: Optional[str] = None,
use_autoline_matching: Optional[bool] = None) -> CloudSyslogSource
func GetCloudSyslogSource(ctx *Context, name string, id IDInput, state *CloudSyslogSourceState, opts ...ResourceOption) (*CloudSyslogSource, error)
public static CloudSyslogSource Get(string name, Input<string> id, CloudSyslogSourceState? state, CustomResourceOptions? opts = null)
public static CloudSyslogSource get(String name, Output<String> id, CloudSyslogSourceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Automatic
Date boolParsing - Category string
- Collector
Id int - Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date List<Pulumi.Formats Sumo Logic. Inputs. Cloud Syslog Source Default Date Format Args> - Description string
- Fields Dictionary<string, string>
- Filters
List<Pulumi.
Sumo Logic. Inputs. Cloud Syslog Source Filter Args> - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Timezone string
- Token string
- Use
Autoline boolMatching
- Automatic
Date boolParsing - Category string
- Collector
Id int - Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date []CloudFormats Syslog Source Default Date Format Args - Description string
- Fields map[string]string
- Filters
[]Cloud
Syslog Source Filter Args - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Timezone string
- Token string
- Use
Autoline boolMatching
- automatic
Date BooleanParsing - category String
- collector
Id Integer - content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Integer - default
Date List<CloudFormats Syslog Source Default Date Format Args> - description String
- fields Map<String,String>
- filters
List<Cloud
Syslog Source Filter Args> - force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- timezone String
- token String
- use
Autoline BooleanMatching
- automatic
Date booleanParsing - category string
- collector
Id number - content
Type string - cutoff
Relative stringTime - cutoff
Timestamp number - default
Date CloudFormats Syslog Source Default Date Format Args[] - description string
- fields {[key: string]: string}
- filters
Cloud
Syslog Source Filter Args[] - force
Timezone boolean - host
Name string - manual
Prefix stringRegexp - multiline
Processing booleanEnabled - name string
- timezone string
- token string
- use
Autoline booleanMatching
- automatic_
date_ boolparsing - category str
- collector_
id int - content_
type str - cutoff_
relative_ strtime - cutoff_
timestamp int - default_
date_ Sequence[Cloudformats Syslog Source Default Date Format Args] - description str
- fields Mapping[str, str]
- filters
Sequence[Cloud
Syslog Source Filter Args] - force_
timezone bool - host_
name str - manual_
prefix_ strregexp - multiline_
processing_ boolenabled - name str
- timezone str
- token str
- use_
autoline_ boolmatching
- automatic
Date BooleanParsing - category String
- collector
Id Number - content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Number - default
Date List<Property Map>Formats - description String
- fields Map<String>
- filters List<Property Map>
- force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- timezone String
- token String
- use
Autoline BooleanMatching
Supporting Types
CloudSyslogSourceDefaultDateFormat
CloudSyslogSourceFilter
- Filter
Type string - Name string
- Regexp string
- Mask string
- Filter
Type string - Name string
- Regexp string
- Mask string
- filter
Type String - name String
- regexp String
- mask String
- filter
Type string - name string
- regexp string
- mask string
- filter_
type str - name str
- regexp str
- mask str
- filter
Type String - name String
- regexp String
- mask String
Import
Cloud Syslog sources can be imported using the collector and source IDs (collector/source
), e.g.hcl
$ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test 123/456
HTTP sources can be imported using the collector name and source name (collectorName/sourceName
), e.g.hcl
$ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test my-test-collector/my-test-source
[1]https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/Cloud_Syslog_Source
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
sumologic
Terraform Provider.