1. Packages
  2. Sumo Logic
  3. API Docs
  4. LocalFileSource
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

sumologic.LocalFileSource

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

    Provides a Sumologic Local File Source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const installedCollector = new sumologic.InstalledCollector("installedCollector", {
        category: "macos/test",
        ephemeral: true,
    });
    const local = new sumologic.LocalFileSource("local", {
        category: "test",
        collectorId: installedCollector.id,
        description: "test",
        pathExpression: "/Applications/Sumo Logic Collector/logs/*.log.*",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    installed_collector = sumologic.InstalledCollector("installedCollector",
        category="macos/test",
        ephemeral=True)
    local = sumologic.LocalFileSource("local",
        category="test",
        collector_id=installed_collector.id,
        description="test",
        path_expression="/Applications/Sumo Logic Collector/logs/*.log.*")
    
    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 {
    		installedCollector, err := sumologic.NewInstalledCollector(ctx, "installedCollector", &sumologic.InstalledCollectorArgs{
    			Category:  pulumi.String("macos/test"),
    			Ephemeral: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewLocalFileSource(ctx, "local", &sumologic.LocalFileSourceArgs{
    			Category:       pulumi.String("test"),
    			CollectorId:    installedCollector.ID(),
    			Description:    pulumi.String("test"),
    			PathExpression: pulumi.String("/Applications/Sumo Logic Collector/logs/*.log.*"),
    		})
    		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 installedCollector = new SumoLogic.InstalledCollector("installedCollector", new()
        {
            Category = "macos/test",
            Ephemeral = true,
        });
    
        var local = new SumoLogic.LocalFileSource("local", new()
        {
            Category = "test",
            CollectorId = installedCollector.Id,
            Description = "test",
            PathExpression = "/Applications/Sumo Logic Collector/logs/*.log.*",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.InstalledCollector;
    import com.pulumi.sumologic.InstalledCollectorArgs;
    import com.pulumi.sumologic.LocalFileSource;
    import com.pulumi.sumologic.LocalFileSourceArgs;
    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 installedCollector = new InstalledCollector("installedCollector", InstalledCollectorArgs.builder()        
                .category("macos/test")
                .ephemeral(true)
                .build());
    
            var local = new LocalFileSource("local", LocalFileSourceArgs.builder()        
                .category("test")
                .collectorId(installedCollector.id())
                .description("test")
                .pathExpression("/Applications/Sumo Logic Collector/logs/*.log.*")
                .build());
    
        }
    }
    
    resources:
      installedCollector:
        type: sumologic:InstalledCollector
        properties:
          category: macos/test
          ephemeral: true
      local:
        type: sumologic:LocalFileSource
        properties:
          category: test
          collectorId: ${installedCollector.id}
          description: test
          pathExpression: /Applications/Sumo Logic Collector/logs/*.log.*
    

    Create LocalFileSource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LocalFileSource(name: string, args: LocalFileSourceArgs, opts?: CustomResourceOptions);
    @overload
    def LocalFileSource(resource_name: str,
                        args: LocalFileSourceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def LocalFileSource(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        collector_id: Optional[int] = None,
                        path_expression: Optional[str] = None,
                        fields: Optional[Mapping[str, str]] = None,
                        filters: Optional[Sequence[LocalFileSourceFilterArgs]] = None,
                        cutoff_relative_time: Optional[str] = None,
                        cutoff_timestamp: Optional[int] = None,
                        default_date_formats: Optional[Sequence[LocalFileSourceDefaultDateFormatArgs]] = None,
                        deny_lists: Optional[Sequence[str]] = None,
                        description: Optional[str] = None,
                        encoding: Optional[str] = None,
                        automatic_date_parsing: Optional[bool] = None,
                        content_type: Optional[str] = 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,
                        category: Optional[str] = None,
                        timezone: Optional[str] = None,
                        use_autoline_matching: Optional[bool] = None)
    func NewLocalFileSource(ctx *Context, name string, args LocalFileSourceArgs, opts ...ResourceOption) (*LocalFileSource, error)
    public LocalFileSource(string name, LocalFileSourceArgs args, CustomResourceOptions? opts = null)
    public LocalFileSource(String name, LocalFileSourceArgs args)
    public LocalFileSource(String name, LocalFileSourceArgs args, CustomResourceOptions options)
    
    type: sumologic:LocalFileSource
    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 LocalFileSourceArgs
    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 LocalFileSourceArgs
    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 LocalFileSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalFileSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalFileSourceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var localFileSourceResource = new SumoLogic.LocalFileSource("localFileSourceResource", new()
    {
        CollectorId = 0,
        PathExpression = "string",
        Fields = 
        {
            { "string", "string" },
        },
        Filters = new[]
        {
            new SumoLogic.Inputs.LocalFileSourceFilterArgs
            {
                FilterType = "string",
                Name = "string",
                Regexp = "string",
                Mask = "string",
            },
        },
        CutoffRelativeTime = "string",
        CutoffTimestamp = 0,
        DefaultDateFormats = new[]
        {
            new SumoLogic.Inputs.LocalFileSourceDefaultDateFormatArgs
            {
                Format = "string",
                Locator = "string",
            },
        },
        DenyLists = new[]
        {
            "string",
        },
        Description = "string",
        Encoding = "string",
        AutomaticDateParsing = false,
        ContentType = "string",
        ForceTimezone = false,
        HostName = "string",
        ManualPrefixRegexp = "string",
        MultilineProcessingEnabled = false,
        Name = "string",
        Category = "string",
        Timezone = "string",
        UseAutolineMatching = false,
    });
    
    example, err := sumologic.NewLocalFileSource(ctx, "localFileSourceResource", &sumologic.LocalFileSourceArgs{
    	CollectorId:    pulumi.Int(0),
    	PathExpression: pulumi.String("string"),
    	Fields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Filters: sumologic.LocalFileSourceFilterArray{
    		&sumologic.LocalFileSourceFilterArgs{
    			FilterType: pulumi.String("string"),
    			Name:       pulumi.String("string"),
    			Regexp:     pulumi.String("string"),
    			Mask:       pulumi.String("string"),
    		},
    	},
    	CutoffRelativeTime: pulumi.String("string"),
    	CutoffTimestamp:    pulumi.Int(0),
    	DefaultDateFormats: sumologic.LocalFileSourceDefaultDateFormatArray{
    		&sumologic.LocalFileSourceDefaultDateFormatArgs{
    			Format:  pulumi.String("string"),
    			Locator: pulumi.String("string"),
    		},
    	},
    	DenyLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:                pulumi.String("string"),
    	Encoding:                   pulumi.String("string"),
    	AutomaticDateParsing:       pulumi.Bool(false),
    	ContentType:                pulumi.String("string"),
    	ForceTimezone:              pulumi.Bool(false),
    	HostName:                   pulumi.String("string"),
    	ManualPrefixRegexp:         pulumi.String("string"),
    	MultilineProcessingEnabled: pulumi.Bool(false),
    	Name:                       pulumi.String("string"),
    	Category:                   pulumi.String("string"),
    	Timezone:                   pulumi.String("string"),
    	UseAutolineMatching:        pulumi.Bool(false),
    })
    
    var localFileSourceResource = new LocalFileSource("localFileSourceResource", LocalFileSourceArgs.builder()        
        .collectorId(0)
        .pathExpression("string")
        .fields(Map.of("string", "string"))
        .filters(LocalFileSourceFilterArgs.builder()
            .filterType("string")
            .name("string")
            .regexp("string")
            .mask("string")
            .build())
        .cutoffRelativeTime("string")
        .cutoffTimestamp(0)
        .defaultDateFormats(LocalFileSourceDefaultDateFormatArgs.builder()
            .format("string")
            .locator("string")
            .build())
        .denyLists("string")
        .description("string")
        .encoding("string")
        .automaticDateParsing(false)
        .contentType("string")
        .forceTimezone(false)
        .hostName("string")
        .manualPrefixRegexp("string")
        .multilineProcessingEnabled(false)
        .name("string")
        .category("string")
        .timezone("string")
        .useAutolineMatching(false)
        .build());
    
    local_file_source_resource = sumologic.LocalFileSource("localFileSourceResource",
        collector_id=0,
        path_expression="string",
        fields={
            "string": "string",
        },
        filters=[sumologic.LocalFileSourceFilterArgs(
            filter_type="string",
            name="string",
            regexp="string",
            mask="string",
        )],
        cutoff_relative_time="string",
        cutoff_timestamp=0,
        default_date_formats=[sumologic.LocalFileSourceDefaultDateFormatArgs(
            format="string",
            locator="string",
        )],
        deny_lists=["string"],
        description="string",
        encoding="string",
        automatic_date_parsing=False,
        content_type="string",
        force_timezone=False,
        host_name="string",
        manual_prefix_regexp="string",
        multiline_processing_enabled=False,
        name="string",
        category="string",
        timezone="string",
        use_autoline_matching=False)
    
    const localFileSourceResource = new sumologic.LocalFileSource("localFileSourceResource", {
        collectorId: 0,
        pathExpression: "string",
        fields: {
            string: "string",
        },
        filters: [{
            filterType: "string",
            name: "string",
            regexp: "string",
            mask: "string",
        }],
        cutoffRelativeTime: "string",
        cutoffTimestamp: 0,
        defaultDateFormats: [{
            format: "string",
            locator: "string",
        }],
        denyLists: ["string"],
        description: "string",
        encoding: "string",
        automaticDateParsing: false,
        contentType: "string",
        forceTimezone: false,
        hostName: "string",
        manualPrefixRegexp: "string",
        multilineProcessingEnabled: false,
        name: "string",
        category: "string",
        timezone: "string",
        useAutolineMatching: false,
    });
    
    type: sumologic:LocalFileSource
    properties:
        automaticDateParsing: false
        category: string
        collectorId: 0
        contentType: string
        cutoffRelativeTime: string
        cutoffTimestamp: 0
        defaultDateFormats:
            - format: string
              locator: string
        denyLists:
            - string
        description: string
        encoding: string
        fields:
            string: string
        filters:
            - filterType: string
              mask: string
              name: string
              regexp: string
        forceTimezone: false
        hostName: string
        manualPrefixRegexp: string
        multilineProcessingEnabled: false
        name: string
        pathExpression: string
        timezone: string
        useAutolineMatching: false
    

    LocalFileSource 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 LocalFileSource resource accepts the following input properties:

    CollectorId int
    PathExpression string
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    AutomaticDateParsing bool
    Category string
    The default source category for the source.
    ContentType string
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats List<Pulumi.SumoLogic.Inputs.LocalFileSourceDefaultDateFormat>
    DenyLists List<string>
    Description string
    The description of the source.
    Encoding string
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    Fields Dictionary<string, string>
    Map containing [key/value pairs][2].
    Filters List<Pulumi.SumoLogic.Inputs.LocalFileSourceFilter>
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    Timezone string
    UseAutolineMatching bool
    CollectorId int
    PathExpression string
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    AutomaticDateParsing bool
    Category string
    The default source category for the source.
    ContentType string
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats []LocalFileSourceDefaultDateFormatArgs
    DenyLists []string
    Description string
    The description of the source.
    Encoding string
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    Fields map[string]string
    Map containing [key/value pairs][2].
    Filters []LocalFileSourceFilterArgs
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    Timezone string
    UseAutolineMatching bool
    collectorId Integer
    pathExpression String
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    automaticDateParsing Boolean
    category String
    The default source category for the source.
    contentType String
    cutoffRelativeTime String
    cutoffTimestamp Integer
    defaultDateFormats List<LocalFileSourceDefaultDateFormat>
    denyLists List<String>
    description String
    The description of the source.
    encoding String
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields Map<String,String>
    Map containing [key/value pairs][2].
    filters List<LocalFileSourceFilter>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    timezone String
    useAutolineMatching Boolean
    collectorId number
    pathExpression string
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    automaticDateParsing boolean
    category string
    The default source category for the source.
    contentType string
    cutoffRelativeTime string
    cutoffTimestamp number
    defaultDateFormats LocalFileSourceDefaultDateFormat[]
    denyLists string[]
    description string
    The description of the source.
    encoding string
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields {[key: string]: string}
    Map containing [key/value pairs][2].
    filters LocalFileSourceFilter[]
    forceTimezone boolean
    hostName string
    manualPrefixRegexp string
    multilineProcessingEnabled boolean
    name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    timezone string
    useAutolineMatching boolean
    collector_id int
    path_expression str
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    automatic_date_parsing bool
    category str
    The default source category for the source.
    content_type str
    cutoff_relative_time str
    cutoff_timestamp int
    default_date_formats Sequence[LocalFileSourceDefaultDateFormatArgs]
    deny_lists Sequence[str]
    description str
    The description of the source.
    encoding str
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields Mapping[str, str]
    Map containing [key/value pairs][2].
    filters Sequence[LocalFileSourceFilterArgs]
    force_timezone bool
    host_name str
    manual_prefix_regexp str
    multiline_processing_enabled bool
    name str
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    timezone str
    use_autoline_matching bool
    collectorId Number
    pathExpression String
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    automaticDateParsing Boolean
    category String
    The default source category for the source.
    contentType String
    cutoffRelativeTime String
    cutoffTimestamp Number
    defaultDateFormats List<Property Map>
    denyLists List<String>
    description String
    The description of the source.
    encoding String
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields Map<String>
    Map containing [key/value pairs][2].
    filters List<Property Map>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    timezone String
    useAutolineMatching Boolean

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LocalFileSource resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LocalFileSource Resource

    Get an existing LocalFileSource 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?: LocalFileSourceState, opts?: CustomResourceOptions): LocalFileSource
    @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[LocalFileSourceDefaultDateFormatArgs]] = None,
            deny_lists: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            encoding: Optional[str] = None,
            fields: Optional[Mapping[str, str]] = None,
            filters: Optional[Sequence[LocalFileSourceFilterArgs]] = 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,
            path_expression: Optional[str] = None,
            timezone: Optional[str] = None,
            use_autoline_matching: Optional[bool] = None) -> LocalFileSource
    func GetLocalFileSource(ctx *Context, name string, id IDInput, state *LocalFileSourceState, opts ...ResourceOption) (*LocalFileSource, error)
    public static LocalFileSource Get(string name, Input<string> id, LocalFileSourceState? state, CustomResourceOptions? opts = null)
    public static LocalFileSource get(String name, Output<String> id, LocalFileSourceState 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.
    The following state arguments are supported:
    AutomaticDateParsing bool
    Category string
    The default source category for the source.
    CollectorId int
    ContentType string
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats List<Pulumi.SumoLogic.Inputs.LocalFileSourceDefaultDateFormat>
    DenyLists List<string>
    Description string
    The description of the source.
    Encoding string
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    Fields Dictionary<string, string>
    Map containing [key/value pairs][2].
    Filters List<Pulumi.SumoLogic.Inputs.LocalFileSourceFilter>
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    PathExpression string
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    Timezone string
    UseAutolineMatching bool
    AutomaticDateParsing bool
    Category string
    The default source category for the source.
    CollectorId int
    ContentType string
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats []LocalFileSourceDefaultDateFormatArgs
    DenyLists []string
    Description string
    The description of the source.
    Encoding string
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    Fields map[string]string
    Map containing [key/value pairs][2].
    Filters []LocalFileSourceFilterArgs
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    PathExpression string
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    Timezone string
    UseAutolineMatching bool
    automaticDateParsing Boolean
    category String
    The default source category for the source.
    collectorId Integer
    contentType String
    cutoffRelativeTime String
    cutoffTimestamp Integer
    defaultDateFormats List<LocalFileSourceDefaultDateFormat>
    denyLists List<String>
    description String
    The description of the source.
    encoding String
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields Map<String,String>
    Map containing [key/value pairs][2].
    filters List<LocalFileSourceFilter>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    pathExpression String
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    timezone String
    useAutolineMatching Boolean
    automaticDateParsing boolean
    category string
    The default source category for the source.
    collectorId number
    contentType string
    cutoffRelativeTime string
    cutoffTimestamp number
    defaultDateFormats LocalFileSourceDefaultDateFormat[]
    denyLists string[]
    description string
    The description of the source.
    encoding string
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields {[key: string]: string}
    Map containing [key/value pairs][2].
    filters LocalFileSourceFilter[]
    forceTimezone boolean
    hostName string
    manualPrefixRegexp string
    multilineProcessingEnabled boolean
    name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    pathExpression string
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    timezone string
    useAutolineMatching boolean
    automatic_date_parsing bool
    category str
    The default source category for the source.
    collector_id int
    content_type str
    cutoff_relative_time str
    cutoff_timestamp int
    default_date_formats Sequence[LocalFileSourceDefaultDateFormatArgs]
    deny_lists Sequence[str]
    description str
    The description of the source.
    encoding str
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields Mapping[str, str]
    Map containing [key/value pairs][2].
    filters Sequence[LocalFileSourceFilterArgs]
    force_timezone bool
    host_name str
    manual_prefix_regexp str
    multiline_processing_enabled bool
    name str
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    path_expression str
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    timezone str
    use_autoline_matching bool
    automaticDateParsing Boolean
    category String
    The default source category for the source.
    collectorId Number
    contentType String
    cutoffRelativeTime String
    cutoffTimestamp Number
    defaultDateFormats List<Property Map>
    denyLists List<String>
    description String
    The description of the source.
    encoding String
    Defines the encoding form. Default is "UTF-8". Other supported encodings are listed here.
    fields Map<String>
    Map containing [key/value pairs][2].
    filters List<Property Map>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    pathExpression String
    A valid path expression (full path) of the file to collect. For files on Windows systems (not including Windows Events), enter the absolute path including the drive letter. Escape special characters and spaces with a backslash (). If you are collecting from Windows using CIFS/SMB, see Prerequisites for Windows Log Collection. Use a single asterisk wildcard [] for file or folder names. Example:[var/foo/.log]. Use two asterisks [**]to recurse within directories and subdirectories. Example: [var/*/.log].
    timezone String
    useAutolineMatching Boolean

    Supporting Types

    LocalFileSourceDefaultDateFormat, LocalFileSourceDefaultDateFormatArgs

    Format string
    Locator string
    Format string
    Locator string
    format String
    locator String
    format string
    locator string
    format String
    locator String

    LocalFileSourceFilter, LocalFileSourceFilterArgs

    FilterType string
    Name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    Regexp string
    Mask string
    FilterType string
    Name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    Regexp string
    Mask string
    filterType String
    name String
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    regexp String
    mask String
    filterType string
    name string
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    regexp string
    mask string
    filter_type str
    name str
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    regexp str
    mask str
    filterType String
    name String
    The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
    regexp String
    mask String

    Import

    Local file sources can be imported using the collector and source IDs, e.g.:

    hcl

    $ pulumi import sumologic:index/localFileSource:LocalFileSource test 123/456
    

    Local file sources can also be imported using the collector name and source name, e.g.:

    hcl

    $ pulumi import sumologic:index/localFileSource:LocalFileSource 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 sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi