sumologic.HttpSource
Explore with Pulumi AI
Provides a Sumologic HTTP source, Sumologic HTTP Traces source, Sumologic Kinesis Log source, Sumologic HTTP_OTLP_source and Sumologic RUM source. To start using Traces contact your Sumo account representative to activate.
IMPORTANT: The endpoint is stored in plain-text in the state. This is a potential security issue.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const collector = new sumologic.Collector("collector", {
    name: "my-collector",
    description: "Just testing this",
});
const httpSource = new sumologic.HttpSource("http_source", {
    name: "HTTP",
    description: "My description",
    category: "my/source/category",
    collectorId: collector.id,
    filters: [{
        name: "Test Exclude Debug",
        filterType: "Exclude",
        regexp: ".*DEBUG.*",
    }],
});
const httpTracesSource = new sumologic.HttpSource("http_traces_source", {
    name: "HTTP Traces",
    description: "My description",
    category: "my/source/category",
    collectorId: collector.id,
    contentType: "Zipkin",
});
const kinesisLog = new sumologic.HttpSource("kinesisLog", {
    name: "demo-name",
    description: "demo-desc",
    category: "demo-category",
    contentType: "KinesisLog",
    collectorId: test.id,
});
const httpOtlpSource = new sumologic.HttpSource("http_otlp_source", {
    name: "HTTP OTLP",
    description: "My description",
    category: "my/source/category",
    contentType: "Otlp",
    collectorId: test.id,
});
import pulumi
import pulumi_sumologic as sumologic
collector = sumologic.Collector("collector",
    name="my-collector",
    description="Just testing this")
http_source = sumologic.HttpSource("http_source",
    name="HTTP",
    description="My description",
    category="my/source/category",
    collector_id=collector.id,
    filters=[{
        "name": "Test Exclude Debug",
        "filter_type": "Exclude",
        "regexp": ".*DEBUG.*",
    }])
http_traces_source = sumologic.HttpSource("http_traces_source",
    name="HTTP Traces",
    description="My description",
    category="my/source/category",
    collector_id=collector.id,
    content_type="Zipkin")
kinesis_log = sumologic.HttpSource("kinesisLog",
    name="demo-name",
    description="demo-desc",
    category="demo-category",
    content_type="KinesisLog",
    collector_id=test["id"])
http_otlp_source = sumologic.HttpSource("http_otlp_source",
    name="HTTP OTLP",
    description="My description",
    category="my/source/category",
    content_type="Otlp",
    collector_id=test["id"])
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{
			Name:        pulumi.String("my-collector"),
			Description: pulumi.String("Just testing this"),
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewHttpSource(ctx, "http_source", &sumologic.HttpSourceArgs{
			Name:        pulumi.String("HTTP"),
			Description: pulumi.String("My description"),
			Category:    pulumi.String("my/source/category"),
			CollectorId: collector.ID(),
			Filters: sumologic.HttpSourceFilterArray{
				&sumologic.HttpSourceFilterArgs{
					Name:       pulumi.String("Test Exclude Debug"),
					FilterType: pulumi.String("Exclude"),
					Regexp:     pulumi.String(".*DEBUG.*"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewHttpSource(ctx, "http_traces_source", &sumologic.HttpSourceArgs{
			Name:        pulumi.String("HTTP Traces"),
			Description: pulumi.String("My description"),
			Category:    pulumi.String("my/source/category"),
			CollectorId: collector.ID(),
			ContentType: pulumi.String("Zipkin"),
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewHttpSource(ctx, "kinesisLog", &sumologic.HttpSourceArgs{
			Name:        pulumi.String("demo-name"),
			Description: pulumi.String("demo-desc"),
			Category:    pulumi.String("demo-category"),
			ContentType: pulumi.String("KinesisLog"),
			CollectorId: pulumi.Any(test.Id),
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewHttpSource(ctx, "http_otlp_source", &sumologic.HttpSourceArgs{
			Name:        pulumi.String("HTTP OTLP"),
			Description: pulumi.String("My description"),
			Category:    pulumi.String("my/source/category"),
			ContentType: pulumi.String("Otlp"),
			CollectorId: pulumi.Any(test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() => 
{
    var collector = new SumoLogic.Collector("collector", new()
    {
        Name = "my-collector",
        Description = "Just testing this",
    });
    var httpSource = new SumoLogic.HttpSource("http_source", new()
    {
        Name = "HTTP",
        Description = "My description",
        Category = "my/source/category",
        CollectorId = collector.Id,
        Filters = new[]
        {
            new SumoLogic.Inputs.HttpSourceFilterArgs
            {
                Name = "Test Exclude Debug",
                FilterType = "Exclude",
                Regexp = ".*DEBUG.*",
            },
        },
    });
    var httpTracesSource = new SumoLogic.HttpSource("http_traces_source", new()
    {
        Name = "HTTP Traces",
        Description = "My description",
        Category = "my/source/category",
        CollectorId = collector.Id,
        ContentType = "Zipkin",
    });
    var kinesisLog = new SumoLogic.HttpSource("kinesisLog", new()
    {
        Name = "demo-name",
        Description = "demo-desc",
        Category = "demo-category",
        ContentType = "KinesisLog",
        CollectorId = test.Id,
    });
    var httpOtlpSource = new SumoLogic.HttpSource("http_otlp_source", new()
    {
        Name = "HTTP OTLP",
        Description = "My description",
        Category = "my/source/category",
        ContentType = "Otlp",
        CollectorId = test.Id,
    });
});
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.HttpSource;
import com.pulumi.sumologic.HttpSourceArgs;
import com.pulumi.sumologic.inputs.HttpSourceFilterArgs;
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()
            .name("my-collector")
            .description("Just testing this")
            .build());
        var httpSource = new HttpSource("httpSource", HttpSourceArgs.builder()
            .name("HTTP")
            .description("My description")
            .category("my/source/category")
            .collectorId(collector.id())
            .filters(HttpSourceFilterArgs.builder()
                .name("Test Exclude Debug")
                .filterType("Exclude")
                .regexp(".*DEBUG.*")
                .build())
            .build());
        var httpTracesSource = new HttpSource("httpTracesSource", HttpSourceArgs.builder()
            .name("HTTP Traces")
            .description("My description")
            .category("my/source/category")
            .collectorId(collector.id())
            .contentType("Zipkin")
            .build());
        var kinesisLog = new HttpSource("kinesisLog", HttpSourceArgs.builder()
            .name("demo-name")
            .description("demo-desc")
            .category("demo-category")
            .contentType("KinesisLog")
            .collectorId(test.id())
            .build());
        var httpOtlpSource = new HttpSource("httpOtlpSource", HttpSourceArgs.builder()
            .name("HTTP OTLP")
            .description("My description")
            .category("my/source/category")
            .contentType("Otlp")
            .collectorId(test.id())
            .build());
    }
}
resources:
  httpSource:
    type: sumologic:HttpSource
    name: http_source
    properties:
      name: HTTP
      description: My description
      category: my/source/category
      collectorId: ${collector.id}
      filters:
        - name: Test Exclude Debug
          filterType: Exclude
          regexp: .*DEBUG.*
  httpTracesSource:
    type: sumologic:HttpSource
    name: http_traces_source
    properties:
      name: HTTP Traces
      description: My description
      category: my/source/category
      collectorId: ${collector.id}
      contentType: Zipkin
  kinesisLog:
    type: sumologic:HttpSource
    properties:
      name: demo-name
      description: demo-desc
      category: demo-category
      contentType: KinesisLog
      collectorId: ${test.id}
  httpOtlpSource:
    type: sumologic:HttpSource
    name: http_otlp_source
    properties:
      name: HTTP OTLP
      description: My description
      category: my/source/category
      contentType: Otlp
      collectorId: ${test.id}
  collector:
    type: sumologic:Collector
    properties:
      name: my-collector
      description: Just testing this
Create HttpSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HttpSource(name: string, args: HttpSourceArgs, opts?: CustomResourceOptions);@overload
def HttpSource(resource_name: str,
               args: HttpSourceArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def HttpSource(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               collector_id: Optional[int] = None,
               fields: Optional[Mapping[str, str]] = None,
               hash_algorithm: Optional[str] = None,
               content_type: Optional[str] = None,
               cutoff_relative_time: Optional[str] = None,
               cutoff_timestamp: Optional[int] = None,
               default_date_formats: Optional[Sequence[HttpSourceDefaultDateFormatArgs]] = None,
               description: Optional[str] = None,
               automatic_date_parsing: Optional[bool] = None,
               category: Optional[str] = None,
               filters: Optional[Sequence[HttpSourceFilterArgs]] = None,
               force_timezone: Optional[bool] = None,
               host_name: Optional[str] = None,
               manual_prefix_regexp: Optional[str] = None,
               message_per_request: Optional[bool] = None,
               multiline_processing_enabled: Optional[bool] = None,
               name: Optional[str] = None,
               timezone: Optional[str] = None,
               use_autoline_matching: Optional[bool] = None)func NewHttpSource(ctx *Context, name string, args HttpSourceArgs, opts ...ResourceOption) (*HttpSource, error)public HttpSource(string name, HttpSourceArgs args, CustomResourceOptions? opts = null)
public HttpSource(String name, HttpSourceArgs args)
public HttpSource(String name, HttpSourceArgs args, CustomResourceOptions options)
type: sumologic:HttpSource
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 HttpSourceArgs
- 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 HttpSourceArgs
- 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 HttpSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HttpSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HttpSourceArgs
- 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 httpSourceResource = new SumoLogic.HttpSource("httpSourceResource", new()
{
    CollectorId = 0,
    Fields = 
    {
        { "string", "string" },
    },
    HashAlgorithm = "string",
    ContentType = "string",
    CutoffRelativeTime = "string",
    CutoffTimestamp = 0,
    DefaultDateFormats = new[]
    {
        new SumoLogic.Inputs.HttpSourceDefaultDateFormatArgs
        {
            Format = "string",
            Locator = "string",
        },
    },
    Description = "string",
    AutomaticDateParsing = false,
    Category = "string",
    Filters = new[]
    {
        new SumoLogic.Inputs.HttpSourceFilterArgs
        {
            FilterType = "string",
            Name = "string",
            Regexp = "string",
            Mask = "string",
        },
    },
    ForceTimezone = false,
    HostName = "string",
    ManualPrefixRegexp = "string",
    MessagePerRequest = false,
    MultilineProcessingEnabled = false,
    Name = "string",
    Timezone = "string",
    UseAutolineMatching = false,
});
example, err := sumologic.NewHttpSource(ctx, "httpSourceResource", &sumologic.HttpSourceArgs{
	CollectorId: pulumi.Int(0),
	Fields: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	HashAlgorithm:      pulumi.String("string"),
	ContentType:        pulumi.String("string"),
	CutoffRelativeTime: pulumi.String("string"),
	CutoffTimestamp:    pulumi.Int(0),
	DefaultDateFormats: sumologic.HttpSourceDefaultDateFormatArray{
		&sumologic.HttpSourceDefaultDateFormatArgs{
			Format:  pulumi.String("string"),
			Locator: pulumi.String("string"),
		},
	},
	Description:          pulumi.String("string"),
	AutomaticDateParsing: pulumi.Bool(false),
	Category:             pulumi.String("string"),
	Filters: sumologic.HttpSourceFilterArray{
		&sumologic.HttpSourceFilterArgs{
			FilterType: pulumi.String("string"),
			Name:       pulumi.String("string"),
			Regexp:     pulumi.String("string"),
			Mask:       pulumi.String("string"),
		},
	},
	ForceTimezone:              pulumi.Bool(false),
	HostName:                   pulumi.String("string"),
	ManualPrefixRegexp:         pulumi.String("string"),
	MessagePerRequest:          pulumi.Bool(false),
	MultilineProcessingEnabled: pulumi.Bool(false),
	Name:                       pulumi.String("string"),
	Timezone:                   pulumi.String("string"),
	UseAutolineMatching:        pulumi.Bool(false),
})
var httpSourceResource = new HttpSource("httpSourceResource", HttpSourceArgs.builder()
    .collectorId(0)
    .fields(Map.of("string", "string"))
    .hashAlgorithm("string")
    .contentType("string")
    .cutoffRelativeTime("string")
    .cutoffTimestamp(0)
    .defaultDateFormats(HttpSourceDefaultDateFormatArgs.builder()
        .format("string")
        .locator("string")
        .build())
    .description("string")
    .automaticDateParsing(false)
    .category("string")
    .filters(HttpSourceFilterArgs.builder()
        .filterType("string")
        .name("string")
        .regexp("string")
        .mask("string")
        .build())
    .forceTimezone(false)
    .hostName("string")
    .manualPrefixRegexp("string")
    .messagePerRequest(false)
    .multilineProcessingEnabled(false)
    .name("string")
    .timezone("string")
    .useAutolineMatching(false)
    .build());
http_source_resource = sumologic.HttpSource("httpSourceResource",
    collector_id=0,
    fields={
        "string": "string",
    },
    hash_algorithm="string",
    content_type="string",
    cutoff_relative_time="string",
    cutoff_timestamp=0,
    default_date_formats=[{
        "format": "string",
        "locator": "string",
    }],
    description="string",
    automatic_date_parsing=False,
    category="string",
    filters=[{
        "filter_type": "string",
        "name": "string",
        "regexp": "string",
        "mask": "string",
    }],
    force_timezone=False,
    host_name="string",
    manual_prefix_regexp="string",
    message_per_request=False,
    multiline_processing_enabled=False,
    name="string",
    timezone="string",
    use_autoline_matching=False)
const httpSourceResource = new sumologic.HttpSource("httpSourceResource", {
    collectorId: 0,
    fields: {
        string: "string",
    },
    hashAlgorithm: "string",
    contentType: "string",
    cutoffRelativeTime: "string",
    cutoffTimestamp: 0,
    defaultDateFormats: [{
        format: "string",
        locator: "string",
    }],
    description: "string",
    automaticDateParsing: false,
    category: "string",
    filters: [{
        filterType: "string",
        name: "string",
        regexp: "string",
        mask: "string",
    }],
    forceTimezone: false,
    hostName: "string",
    manualPrefixRegexp: "string",
    messagePerRequest: false,
    multilineProcessingEnabled: false,
    name: "string",
    timezone: "string",
    useAutolineMatching: false,
});
type: sumologic:HttpSource
properties:
    automaticDateParsing: false
    category: string
    collectorId: 0
    contentType: string
    cutoffRelativeTime: string
    cutoffTimestamp: 0
    defaultDateFormats:
        - format: string
          locator: string
    description: string
    fields:
        string: string
    filters:
        - filterType: string
          mask: string
          name: string
          regexp: string
    forceTimezone: false
    hashAlgorithm: string
    hostName: string
    manualPrefixRegexp: string
    messagePerRequest: false
    multilineProcessingEnabled: false
    name: string
    timezone: string
    useAutolineMatching: false
HttpSource 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 HttpSource resource accepts the following input properties:
- CollectorId int
- AutomaticDate boolParsing 
- Category string
- ContentType string
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- CutoffRelative stringTime 
- CutoffTimestamp int
- DefaultDate List<Pulumi.Formats Sumo Logic. Inputs. Http Source Default Date Format> 
- Description string
- Fields Dictionary<string, string>
- Filters
List<Pulumi.Sumo Logic. Inputs. Http Source Filter> 
- ForceTimezone bool
- HashAlgorithm string
- HostName string
- ManualPrefix stringRegexp 
- MessagePer boolRequest 
- When set to true, will create one log message per HTTP request.
- MultilineProcessing boolEnabled 
- Name string
- Timezone string
- UseAutoline boolMatching 
- CollectorId int
- AutomaticDate boolParsing 
- Category string
- ContentType string
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- CutoffRelative stringTime 
- CutoffTimestamp int
- DefaultDate []HttpFormats Source Default Date Format Args 
- Description string
- Fields map[string]string
- Filters
[]HttpSource Filter Args 
- ForceTimezone bool
- HashAlgorithm string
- HostName string
- ManualPrefix stringRegexp 
- MessagePer boolRequest 
- When set to true, will create one log message per HTTP request.
- MultilineProcessing boolEnabled 
- Name string
- Timezone string
- UseAutoline boolMatching 
- collectorId Integer
- automaticDate BooleanParsing 
- category String
- contentType String
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoffRelative StringTime 
- cutoffTimestamp Integer
- defaultDate List<HttpFormats Source Default Date Format> 
- description String
- fields Map<String,String>
- filters
List<HttpSource Filter> 
- forceTimezone Boolean
- hashAlgorithm String
- hostName String
- manualPrefix StringRegexp 
- messagePer BooleanRequest 
- When set to true, will create one log message per HTTP request.
- multilineProcessing BooleanEnabled 
- name String
- timezone String
- useAutoline BooleanMatching 
- collectorId number
- automaticDate booleanParsing 
- category string
- contentType string
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoffRelative stringTime 
- cutoffTimestamp number
- defaultDate HttpFormats Source Default Date Format[] 
- description string
- fields {[key: string]: string}
- filters
HttpSource Filter[] 
- forceTimezone boolean
- hashAlgorithm string
- hostName string
- manualPrefix stringRegexp 
- messagePer booleanRequest 
- When set to true, will create one log message per HTTP request.
- multilineProcessing booleanEnabled 
- name string
- timezone string
- useAutoline booleanMatching 
- collector_id int
- automatic_date_ boolparsing 
- category str
- content_type str
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoff_relative_ strtime 
- cutoff_timestamp int
- default_date_ Sequence[Httpformats Source Default Date Format Args] 
- description str
- fields Mapping[str, str]
- filters
Sequence[HttpSource Filter Args] 
- force_timezone bool
- hash_algorithm str
- host_name str
- manual_prefix_ strregexp 
- message_per_ boolrequest 
- When set to true, will create one log message per HTTP request.
- multiline_processing_ boolenabled 
- name str
- timezone str
- use_autoline_ boolmatching 
- collectorId Number
- automaticDate BooleanParsing 
- category String
- contentType String
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoffRelative StringTime 
- cutoffTimestamp Number
- defaultDate List<Property Map>Formats 
- description String
- fields Map<String>
- filters List<Property Map>
- forceTimezone Boolean
- hashAlgorithm String
- hostName String
- manualPrefix StringRegexp 
- messagePer BooleanRequest 
- When set to true, will create one log message per HTTP request.
- multilineProcessing BooleanEnabled 
- name String
- timezone String
- useAutoline BooleanMatching 
Outputs
All input properties are implicitly available as output properties. Additionally, the HttpSource resource produces the following output properties:
Look up Existing HttpSource Resource
Get an existing HttpSource 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?: HttpSourceState, opts?: CustomResourceOptions): HttpSource@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[HttpSourceDefaultDateFormatArgs]] = None,
        description: Optional[str] = None,
        fields: Optional[Mapping[str, str]] = None,
        filters: Optional[Sequence[HttpSourceFilterArgs]] = None,
        force_timezone: Optional[bool] = None,
        hash_algorithm: Optional[str] = None,
        host_name: Optional[str] = None,
        manual_prefix_regexp: Optional[str] = None,
        message_per_request: Optional[bool] = None,
        multiline_processing_enabled: Optional[bool] = None,
        name: Optional[str] = None,
        timezone: Optional[str] = None,
        url: Optional[str] = None,
        use_autoline_matching: Optional[bool] = None) -> HttpSourcefunc GetHttpSource(ctx *Context, name string, id IDInput, state *HttpSourceState, opts ...ResourceOption) (*HttpSource, error)public static HttpSource Get(string name, Input<string> id, HttpSourceState? state, CustomResourceOptions? opts = null)public static HttpSource get(String name, Output<String> id, HttpSourceState state, CustomResourceOptions options)resources:  _:    type: sumologic:HttpSource    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.
- AutomaticDate boolParsing 
- Category string
- CollectorId int
- ContentType string
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- CutoffRelative stringTime 
- CutoffTimestamp int
- DefaultDate List<Pulumi.Formats Sumo Logic. Inputs. Http Source Default Date Format> 
- Description string
- Fields Dictionary<string, string>
- Filters
List<Pulumi.Sumo Logic. Inputs. Http Source Filter> 
- ForceTimezone bool
- HashAlgorithm string
- HostName string
- ManualPrefix stringRegexp 
- MessagePer boolRequest 
- When set to true, will create one log message per HTTP request.
- MultilineProcessing boolEnabled 
- Name string
- Timezone string
- Url string
- The HTTP endpoint to use for sending data to this source.
- UseAutoline boolMatching 
- AutomaticDate boolParsing 
- Category string
- CollectorId int
- ContentType string
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- CutoffRelative stringTime 
- CutoffTimestamp int
- DefaultDate []HttpFormats Source Default Date Format Args 
- Description string
- Fields map[string]string
- Filters
[]HttpSource Filter Args 
- ForceTimezone bool
- HashAlgorithm string
- HostName string
- ManualPrefix stringRegexp 
- MessagePer boolRequest 
- When set to true, will create one log message per HTTP request.
- MultilineProcessing boolEnabled 
- Name string
- Timezone string
- Url string
- The HTTP endpoint to use for sending data to this source.
- UseAutoline boolMatching 
- automaticDate BooleanParsing 
- category String
- collectorId Integer
- contentType String
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoffRelative StringTime 
- cutoffTimestamp Integer
- defaultDate List<HttpFormats Source Default Date Format> 
- description String
- fields Map<String,String>
- filters
List<HttpSource Filter> 
- forceTimezone Boolean
- hashAlgorithm String
- hostName String
- manualPrefix StringRegexp 
- messagePer BooleanRequest 
- When set to true, will create one log message per HTTP request.
- multilineProcessing BooleanEnabled 
- name String
- timezone String
- url String
- The HTTP endpoint to use for sending data to this source.
- useAutoline BooleanMatching 
- automaticDate booleanParsing 
- category string
- collectorId number
- contentType string
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoffRelative stringTime 
- cutoffTimestamp number
- defaultDate HttpFormats Source Default Date Format[] 
- description string
- fields {[key: string]: string}
- filters
HttpSource Filter[] 
- forceTimezone boolean
- hashAlgorithm string
- hostName string
- manualPrefix stringRegexp 
- messagePer booleanRequest 
- When set to true, will create one log message per HTTP request.
- multilineProcessing booleanEnabled 
- name string
- timezone string
- url string
- The HTTP endpoint to use for sending data to this source.
- useAutoline booleanMatching 
- automatic_date_ boolparsing 
- category str
- collector_id int
- content_type str
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoff_relative_ strtime 
- cutoff_timestamp int
- default_date_ Sequence[Httpformats Source Default Date Format Args] 
- description str
- fields Mapping[str, str]
- filters
Sequence[HttpSource Filter Args] 
- force_timezone bool
- hash_algorithm str
- host_name str
- manual_prefix_ strregexp 
- message_per_ boolrequest 
- When set to true, will create one log message per HTTP request.
- multiline_processing_ boolenabled 
- name str
- timezone str
- url str
- The HTTP endpoint to use for sending data to this source.
- use_autoline_ boolmatching 
- automaticDate BooleanParsing 
- category String
- collectorId Number
- contentType String
- This should only be used when creating a Traces, Kinesis Log, HTTP OTLP or a RUM source.- When configuring a HTTP Traces Source, set this property to Zipkin.
- When configuring a Kinesis Logs Source, set this property to KinesisLog.
- When configuring a HTTP OTLP Source, set this property to Otlp.
- When configuring a RUM Source, set this property to Rum.
 
- When configuring a HTTP Traces Source, set this property to 
- cutoffRelative StringTime 
- cutoffTimestamp Number
- defaultDate List<Property Map>Formats 
- description String
- fields Map<String>
- filters List<Property Map>
- forceTimezone Boolean
- hashAlgorithm String
- hostName String
- manualPrefix StringRegexp 
- messagePer BooleanRequest 
- When set to true, will create one log message per HTTP request.
- multilineProcessing BooleanEnabled 
- name String
- timezone String
- url String
- The HTTP endpoint to use for sending data to this source.
- useAutoline BooleanMatching 
Supporting Types
HttpSourceDefaultDateFormat, HttpSourceDefaultDateFormatArgs          
HttpSourceFilter, HttpSourceFilterArgs      
- FilterType string
- Name string
- Regexp string
- Mask string
- FilterType string
- Name string
- Regexp string
- Mask string
- filterType String
- name String
- regexp String
- mask String
- filterType string
- name string
- regexp string
- mask string
- filter_type str
- name str
- regexp str
- mask str
- filterType String
- name String
- regexp String
- mask String
Import
HTTP sources can be imported using the collector and source IDs (collector/source), e.g.:
hcl
$ pulumi import sumologic:index/httpSource:HttpSource test 123/456
HTTP sources can be imported using the collector name and source name (collectorName/sourceName), e.g.:
hcl
$ pulumi import sumologic:index/httpSource:HttpSource test my-test-collector/my-test-source
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the sumologicTerraform Provider.