1. Packages
  2. Sumologic Provider
  3. API Docs
  4. LocalFileSource
Sumo Logic v1.0.7 published on Friday, Apr 11, 2025 by Pulumi

sumologic.LocalFileSource

Explore with Pulumi AI

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("installed_collector", {
    name: "test-collector",
    category: "macos/test",
    ephemeral: true,
});
const local = new sumologic.LocalFileSource("local", {
    name: "localfile-mac",
    description: "test",
    category: "test",
    collectorId: installedCollector.id,
    pathExpression: "/Applications/Sumo Logic Collector/logs/*.log.*",
});
Copy
import pulumi
import pulumi_sumologic as sumologic

installed_collector = sumologic.InstalledCollector("installed_collector",
    name="test-collector",
    category="macos/test",
    ephemeral=True)
local = sumologic.LocalFileSource("local",
    name="localfile-mac",
    description="test",
    category="test",
    collector_id=installed_collector.id,
    path_expression="/Applications/Sumo Logic Collector/logs/*.log.*")
Copy
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, "installed_collector", &sumologic.InstalledCollectorArgs{
			Name:      pulumi.String("test-collector"),
			Category:  pulumi.String("macos/test"),
			Ephemeral: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewLocalFileSource(ctx, "local", &sumologic.LocalFileSourceArgs{
			Name:           pulumi.String("localfile-mac"),
			Description:    pulumi.String("test"),
			Category:       pulumi.String("test"),
			CollectorId:    installedCollector.ID(),
			PathExpression: pulumi.String("/Applications/Sumo Logic Collector/logs/*.log.*"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var installedCollector = new SumoLogic.InstalledCollector("installed_collector", new()
    {
        Name = "test-collector",
        Category = "macos/test",
        Ephemeral = true,
    });

    var local = new SumoLogic.LocalFileSource("local", new()
    {
        Name = "localfile-mac",
        Description = "test",
        Category = "test",
        CollectorId = installedCollector.Id,
        PathExpression = "/Applications/Sumo Logic Collector/logs/*.log.*",
    });

});
Copy
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()
            .name("test-collector")
            .category("macos/test")
            .ephemeral(true)
            .build());

        var local = new LocalFileSource("local", LocalFileSourceArgs.builder()
            .name("localfile-mac")
            .description("test")
            .category("test")
            .collectorId(installedCollector.id())
            .pathExpression("/Applications/Sumo Logic Collector/logs/*.log.*")
            .build());

    }
}
Copy
resources:
  installedCollector:
    type: sumologic:InstalledCollector
    name: installed_collector
    properties:
      name: test-collector
      category: macos/test
      ephemeral: true
  local:
    type: sumologic:LocalFileSource
    properties:
      name: localfile-mac
      description: test
      category: test
      collectorId: ${installedCollector.id}
      pathExpression: /Applications/Sumo Logic Collector/logs/*.log.*
Copy

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,
                    hash_algorithm: Optional[str] = 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 This property is required. string
The unique name of the resource.
args This property is required. LocalFileSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LocalFileSourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LocalFileSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LocalFileSourceArgs
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 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,
    HashAlgorithm = "string",
    HostName = "string",
    ManualPrefixRegexp = "string",
    MultilineProcessingEnabled = false,
    Name = "string",
    Category = "string",
    Timezone = "string",
    UseAutolineMatching = false,
});
Copy
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),
	HashAlgorithm:              pulumi.String("string"),
	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),
})
Copy
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)
    .hashAlgorithm("string")
    .hostName("string")
    .manualPrefixRegexp("string")
    .multilineProcessingEnabled(false)
    .name("string")
    .category("string")
    .timezone("string")
    .useAutolineMatching(false)
    .build());
Copy
local_file_source_resource = sumologic.LocalFileSource("localFileSourceResource",
    collector_id=0,
    path_expression="string",
    fields={
        "string": "string",
    },
    filters=[{
        "filter_type": "string",
        "name": "string",
        "regexp": "string",
        "mask": "string",
    }],
    cutoff_relative_time="string",
    cutoff_timestamp=0,
    default_date_formats=[{
        "format": "string",
        "locator": "string",
    }],
    deny_lists=["string"],
    description="string",
    encoding="string",
    automatic_date_parsing=False,
    content_type="string",
    force_timezone=False,
    hash_algorithm="string",
    host_name="string",
    manual_prefix_regexp="string",
    multiline_processing_enabled=False,
    name="string",
    category="string",
    timezone="string",
    use_autoline_matching=False)
Copy
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,
    hashAlgorithm: "string",
    hostName: "string",
    manualPrefixRegexp: "string",
    multilineProcessingEnabled: false,
    name: "string",
    category: "string",
    timezone: "string",
    useAutolineMatching: false,
});
Copy
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
    hashAlgorithm: string
    hostName: string
    manualPrefixRegexp: string
    multilineProcessingEnabled: false
    name: string
    pathExpression: string
    timezone: string
    useAutolineMatching: false
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LocalFileSource resource accepts the following input properties:

CollectorId
This property is required.
Changes to this property will trigger replacement.
int
PathExpression This property is required. 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 Changes to this property will trigger replacement. 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
HashAlgorithm string
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
This property is required.
Changes to this property will trigger replacement.
int
PathExpression This property is required. 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 Changes to this property will trigger replacement. 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
HashAlgorithm string
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
This property is required.
Changes to this property will trigger replacement.
Integer
pathExpression This property is required. 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 Changes to this property will trigger replacement. 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
hashAlgorithm String
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
This property is required.
Changes to this property will trigger replacement.
number
pathExpression This property is required. 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 Changes to this property will trigger replacement. 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
hashAlgorithm string
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
This property is required.
Changes to this property will trigger replacement.
int
path_expression This property is required. 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 Changes to this property will trigger replacement. 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
hash_algorithm str
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
This property is required.
Changes to this property will trigger replacement.
Number
pathExpression This property is required. 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 Changes to this property will trigger replacement. 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
hashAlgorithm String
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,
        hash_algorithm: Optional[str] = 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)
resources:  _:    type: sumologic:LocalFileSource    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. int
ContentType string
CutoffRelativeTime Changes to this property will trigger replacement. 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
HashAlgorithm string
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 Changes to this property will trigger replacement. int
ContentType string
CutoffRelativeTime Changes to this property will trigger replacement. 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
HashAlgorithm string
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 Changes to this property will trigger replacement. Integer
contentType String
cutoffRelativeTime Changes to this property will trigger replacement. 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
hashAlgorithm String
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 Changes to this property will trigger replacement. number
contentType string
cutoffRelativeTime Changes to this property will trigger replacement. 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
hashAlgorithm string
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 Changes to this property will trigger replacement. int
content_type str
cutoff_relative_time Changes to this property will trigger replacement. 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
hash_algorithm str
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 Changes to this property will trigger replacement. Number
contentType String
cutoffRelativeTime Changes to this property will trigger replacement. 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
hashAlgorithm String
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 This property is required. string
Locator string
Format This property is required. string
Locator string
format This property is required. String
locator String
format This property is required. string
locator string
format This property is required. str
locator str
format This property is required. String
locator String

LocalFileSourceFilter
, LocalFileSourceFilterArgs

FilterType This property is required. string
Name This property is required. string
The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
Regexp This property is required. string
Mask string
FilterType This property is required. string
Name This property is required. string
The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
Regexp This property is required. string
Mask string
filterType This property is required. String
name This property is required. String
The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
regexp This property is required. String
mask String
filterType This property is required. string
name This property is required. string
The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
regexp This property is required. string
mask string
filter_type This property is required. str
name This property is required. str
The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
regexp This property is required. str
mask str
filterType This property is required. String
name This property is required. String
The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
regexp This property is required. 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
Copy

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
Copy

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.