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.*",
});
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.*")
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
})
}
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.*",
});
});
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());
}
}
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.*
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.
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,
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:
- Collector
Id int - Path
Expression 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].
- Automatic
Date boolParsing - Category string
- The default source category for the source.
- Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date List<Pulumi.Formats Sumo Logic. Inputs. Local File Source Default Date Format> - Deny
Lists 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.
Sumo Logic. Inputs. Local File Source Filter> - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - 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
- Use
Autoline boolMatching
- Collector
Id int - Path
Expression 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].
- Automatic
Date boolParsing - Category string
- The default source category for the source.
- Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date []LocalFormats File Source Default Date Format Args - Deny
Lists []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
[]Local
File Source Filter Args - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - 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
- Use
Autoline boolMatching
- collector
Id Integer - path
Expression 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].
- automatic
Date BooleanParsing - category String
- The default source category for the source.
- content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Integer - default
Date List<LocalFormats File Source Default Date Format> - deny
Lists 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<Local
File Source Filter> - force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - 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
- use
Autoline BooleanMatching
- collector
Id number - path
Expression 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].
- automatic
Date booleanParsing - category string
- The default source category for the source.
- content
Type string - cutoff
Relative stringTime - cutoff
Timestamp number - default
Date LocalFormats File Source Default Date Format[] - deny
Lists 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
Local
File Source Filter[] - force
Timezone boolean - host
Name string - manual
Prefix stringRegexp - multiline
Processing booleanEnabled - 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
- use
Autoline booleanMatching
- 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_ boolparsing - category str
- The default source category for the source.
- content_
type str - cutoff_
relative_ strtime - cutoff_
timestamp int - default_
date_ Sequence[Localformats File Source Default Date Format Args] - 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[Local
File Source Filter Args] - force_
timezone bool - host_
name str - manual_
prefix_ strregexp - multiline_
processing_ boolenabled - 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_ boolmatching
- collector
Id Number - path
Expression 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].
- automatic
Date BooleanParsing - category String
- The default source category for the source.
- content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Number - default
Date List<Property Map>Formats - deny
Lists 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>
- force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - 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
- use
Autoline BooleanMatching
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.
- Automatic
Date boolParsing - Category string
- The default source category for the source.
- Collector
Id int - Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date List<Pulumi.Formats Sumo Logic. Inputs. Local File Source Default Date Format> - Deny
Lists 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.
Sumo Logic. Inputs. Local File Source Filter> - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
- Path
Expression 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
- Use
Autoline boolMatching
- Automatic
Date boolParsing - Category string
- The default source category for the source.
- Collector
Id int - Content
Type string - Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date []LocalFormats File Source Default Date Format Args - Deny
Lists []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
[]Local
File Source Filter Args - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
- Path
Expression 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
- Use
Autoline boolMatching
- automatic
Date BooleanParsing - category String
- The default source category for the source.
- collector
Id Integer - content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Integer - default
Date List<LocalFormats File Source Default Date Format> - deny
Lists 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<Local
File Source Filter> - force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
- path
Expression 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
- use
Autoline BooleanMatching
- automatic
Date booleanParsing - category string
- The default source category for the source.
- collector
Id number - content
Type string - cutoff
Relative stringTime - cutoff
Timestamp number - default
Date LocalFormats File Source Default Date Format[] - deny
Lists 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
Local
File Source Filter[] - force
Timezone boolean - host
Name string - manual
Prefix stringRegexp - multiline
Processing booleanEnabled - name string
- The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
- path
Expression 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
- use
Autoline booleanMatching
- automatic_
date_ boolparsing - category str
- The default source category for the source.
- collector_
id int - content_
type str - cutoff_
relative_ strtime - cutoff_
timestamp int - default_
date_ Sequence[Localformats File Source Default Date Format Args] - 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[Local
File Source Filter Args] - force_
timezone bool - host_
name str - manual_
prefix_ strregexp - multiline_
processing_ boolenabled - 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_ boolmatching
- automatic
Date BooleanParsing - category String
- The default source category for the source.
- collector
Id Number - content
Type String - cutoff
Relative StringTime - cutoff
Timestamp Number - default
Date List<Property Map>Formats - deny
Lists 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>
- force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- The name of the local file source. This is required, and has to be unique. Changing this will force recreation the source.
- path
Expression 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
- use
Autoline BooleanMatching
Supporting Types
LocalFileSourceDefaultDateFormat, LocalFileSourceDefaultDateFormatArgs
LocalFileSourceFilter, LocalFileSourceFilterArgs
- Filter
Type 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 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 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 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
- filter
Type 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.