published on Wednesday, Nov 11, 2026 by sumologic
published on Wednesday, Nov 11, 2026 by sumologic
Provides a folder in the Sumo Logic Parsers library. Use its id as the parent_id of a
sumologic.Parser or of another sumologic.ParserFolder to organize parsers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const firewalls = new sumologic.ParserFolder("firewalls", {
name: "Firewalls",
description: "Parsers for firewall logs",
});
// A nested folder
const paloAlto = new sumologic.ParserFolder("palo_alto", {
name: "Palo Alto",
parentId: firewalls.parserFolderId,
});
// A parser inside the nested folder
const panFirewall = new sumologic.Parser("pan_firewall", {
name: "PAN-firewall",
parentId: paloAlto.parserFolderId,
stanzas: `[sourcetype:PAN-firewall]
FORMAT = CSV`,
});
import pulumi
import pulumi_sumologic as sumologic
firewalls = sumologic.ParserFolder("firewalls",
name="Firewalls",
description="Parsers for firewall logs")
# A nested folder
palo_alto = sumologic.ParserFolder("palo_alto",
name="Palo Alto",
parent_id=firewalls.parser_folder_id)
# A parser inside the nested folder
pan_firewall = sumologic.Parser("pan_firewall",
name="PAN-firewall",
parent_id=palo_alto.parser_folder_id,
stanzas="""[sourcetype:PAN-firewall]
FORMAT = CSV""")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sumologic/v3/sumologic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
firewalls, err := sumologic.NewParserFolder(ctx, "firewalls", &sumologic.ParserFolderArgs{
Name: pulumi.String("Firewalls"),
Description: pulumi.String("Parsers for firewall logs"),
})
if err != nil {
return err
}
// A nested folder
paloAlto, err := sumologic.NewParserFolder(ctx, "palo_alto", &sumologic.ParserFolderArgs{
Name: pulumi.String("Palo Alto"),
ParentId: firewalls.ParserFolderId,
})
if err != nil {
return err
}
// A parser inside the nested folder
_, err = sumologic.NewParser(ctx, "pan_firewall", &sumologic.ParserArgs{
Name: pulumi.String("PAN-firewall"),
ParentId: paloAlto.ParserFolderId,
Stanzas: pulumi.String("[sourcetype:PAN-firewall]\nFORMAT = CSV"),
})
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 firewalls = new Sumologic.ParserFolder("firewalls", new()
{
Name = "Firewalls",
Description = "Parsers for firewall logs",
});
// A nested folder
var paloAlto = new Sumologic.ParserFolder("palo_alto", new()
{
Name = "Palo Alto",
ParentId = firewalls.ParserFolderId,
});
// A parser inside the nested folder
var panFirewall = new Sumologic.Parser("pan_firewall", new()
{
Name = "PAN-firewall",
ParentId = paloAlto.ParserFolderId,
Stanzas = @"[sourcetype:PAN-firewall]
FORMAT = CSV",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.ParserFolder;
import com.pulumi.sumologic.ParserFolderArgs;
import com.pulumi.sumologic.Parser;
import com.pulumi.sumologic.ParserArgs;
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 firewalls = new ParserFolder("firewalls", ParserFolderArgs.builder()
.name("Firewalls")
.description("Parsers for firewall logs")
.build());
// A nested folder
var paloAlto = new ParserFolder("paloAlto", ParserFolderArgs.builder()
.name("Palo Alto")
.parentId(firewalls.parserFolderId())
.build());
// A parser inside the nested folder
var panFirewall = new Parser("panFirewall", ParserArgs.builder()
.name("PAN-firewall")
.parentId(paloAlto.parserFolderId())
.stanzas("""
[sourcetype:PAN-firewall]
FORMAT = CSV """)
.build());
}
}
resources:
firewalls:
type: sumologic:ParserFolder
properties:
name: Firewalls
description: Parsers for firewall logs
# A nested folder
paloAlto:
type: sumologic:ParserFolder
name: palo_alto
properties:
name: Palo Alto
parentId: ${firewalls.parserFolderId}
# A parser inside the nested folder
panFirewall:
type: sumologic:Parser
name: pan_firewall
properties:
name: PAN-firewall
parentId: ${paloAlto.parserFolderId}
stanzas: |-
[sourcetype:PAN-firewall]
FORMAT = CSV
Example coming soon!
Attributes reference
In addition to all arguments above, the following attributes are exported:
id- The identifier of the folder.version- The current version of the folder.content_type- The content type of the object (Folder).created_at- Creation timestamp (RFC3339, UTC).created_by- Identifier of the user who created the folder.modified_at- Last modification timestamp (RFC3339, UTC).modified_by- Identifier of the user who last modified the folder.is_locked- Whether the folder is locked.is_system- Whether the folder is provided by Sumo Logic.is_mutable- Whether the folder can be modified.
Create ParserFolder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ParserFolder(name: string, args?: ParserFolderArgs, opts?: CustomResourceOptions);@overload
def ParserFolder(resource_name: str,
args: Optional[ParserFolderArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ParserFolder(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
parent_id: Optional[str] = None,
parser_folder_id: Optional[str] = None)func NewParserFolder(ctx *Context, name string, args *ParserFolderArgs, opts ...ResourceOption) (*ParserFolder, error)public ParserFolder(string name, ParserFolderArgs? args = null, CustomResourceOptions? opts = null)
public ParserFolder(String name, ParserFolderArgs args)
public ParserFolder(String name, ParserFolderArgs args, CustomResourceOptions options)
type: sumologic:ParserFolder
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "sumologic_parser_folder" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ParserFolderArgs
- 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 ParserFolderArgs
- 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 ParserFolderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ParserFolderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ParserFolderArgs
- 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 parserFolderResource = new Sumologic.ParserFolder("parserFolderResource", new()
{
Description = "string",
Name = "string",
ParentId = "string",
ParserFolderId = "string",
});
example, err := sumologic.NewParserFolder(ctx, "parserFolderResource", &sumologic.ParserFolderArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ParentId: pulumi.String("string"),
ParserFolderId: pulumi.String("string"),
})
resource "sumologic_parser_folder" "parserFolderResource" {
lifecycle {
create_before_destroy = true
}
description = "string"
name = "string"
parent_id = "string"
parser_folder_id = "string"
}
var parserFolderResource = new ParserFolder("parserFolderResource", ParserFolderArgs.builder()
.description("string")
.name("string")
.parentId("string")
.parserFolderId("string")
.build());
parser_folder_resource = sumologic.ParserFolder("parserFolderResource",
description="string",
name="string",
parent_id="string",
parser_folder_id="string")
const parserFolderResource = new sumologic.ParserFolder("parserFolderResource", {
description: "string",
name: "string",
parentId: "string",
parserFolderId: "string",
});
type: sumologic:ParserFolder
properties:
description: string
name: string
parentId: string
parserFolderId: string
ParserFolder 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 ParserFolder resource accepts the following input properties:
- Description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- Name string
- Name of the folder. Between 1 and 255 characters.
- Parent
Id string - Parser
Folder stringId
- Description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- Name string
- Name of the folder. Between 1 and 255 characters.
- Parent
Id string - Parser
Folder stringId
- description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- name string
- Name of the folder. Between 1 and 255 characters.
- parent_
id string - parser_
folder_ stringid
- description String
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- name String
- Name of the folder. Between 1 and 255 characters.
- parent
Id String - parser
Folder StringId
- description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- name string
- Name of the folder. Between 1 and 255 characters.
- parent
Id string - parser
Folder stringId
- description str
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- name str
- Name of the folder. Between 1 and 255 characters.
- parent_
id str - parser_
folder_ strid
- description String
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- name String
- Name of the folder. Between 1 and 255 characters.
- parent
Id String - parser
Folder StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the ParserFolder resource produces the following output properties:
- Content
Type string - Created
At string - Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Version double
- Content
Type string - Created
At string - Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Version float64
- content_
type string - created_
at string - created_
by string - id string
- The provider-assigned unique ID for this managed resource.
- is_
locked bool - is_
mutable bool - is_
system bool - modified_
at string - modified_
by string - version number
- content
Type String - created
At String - created
By String - id String
- The provider-assigned unique ID for this managed resource.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - version Double
- content
Type string - created
At string - created
By string - id string
- The provider-assigned unique ID for this managed resource.
- is
Locked boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - version number
- content_
type str - created_
at str - created_
by str - id str
- The provider-assigned unique ID for this managed resource.
- is_
locked bool - is_
mutable bool - is_
system bool - modified_
at str - modified_
by str - version float
- content
Type String - created
At String - created
By String - id String
- The provider-assigned unique ID for this managed resource.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - version Number
Look up Existing ParserFolder Resource
Get an existing ParserFolder 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?: ParserFolderState, opts?: CustomResourceOptions): ParserFolder@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content_type: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
is_locked: Optional[bool] = None,
is_mutable: Optional[bool] = None,
is_system: Optional[bool] = None,
modified_at: Optional[str] = None,
modified_by: Optional[str] = None,
name: Optional[str] = None,
parent_id: Optional[str] = None,
parser_folder_id: Optional[str] = None,
version: Optional[float] = None) -> ParserFolderfunc GetParserFolder(ctx *Context, name string, id IDInput, state *ParserFolderState, opts ...ResourceOption) (*ParserFolder, error)public static ParserFolder Get(string name, Input<string> id, ParserFolderState? state, CustomResourceOptions? opts = null)public static ParserFolder get(String name, Output<String> id, ParserFolderState state, CustomResourceOptions options)resources: _: type: sumologic:ParserFolder get: id: ${id}import {
to = sumologic_parser_folder.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Content
Type string - Created
At string - Created
By string - Description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- Name of the folder. Between 1 and 255 characters.
- Parent
Id string - Parser
Folder stringId - Version double
- Content
Type string - Created
At string - Created
By string - Description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- Name of the folder. Between 1 and 255 characters.
- Parent
Id string - Parser
Folder stringId - Version float64
- content_
type string - created_
at string - created_
by string - description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- is_
locked bool - is_
mutable bool - is_
system bool - modified_
at string - modified_
by string - name string
- Name of the folder. Between 1 and 255 characters.
- parent_
id string - parser_
folder_ stringid - version number
- content
Type String - created
At String - created
By String - description String
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- Name of the folder. Between 1 and 255 characters.
- parent
Id String - parser
Folder StringId - version Double
- content
Type string - created
At string - created
By string - description string
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- is
Locked boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - name string
- Name of the folder. Between 1 and 255 characters.
- parent
Id string - parser
Folder stringId - version number
- content_
type str - created_
at str - created_
by str - description str
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- is_
locked bool - is_
mutable bool - is_
system bool - modified_
at str - modified_
by str - name str
- Name of the folder. Between 1 and 255 characters.
- parent_
id str - parser_
folder_ strid - version float
- content
Type String - created
At String - created
By String - description String
- Description of the folder. Up to 4096 characters. Defaults to an empty string.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- Name of the folder. Between 1 and 255 characters.
- parent
Id String - parser
Folder StringId - version Number
Import
Parser folders can be imported using the folder id, e.g.:
$ pulumi import sumologic:index/parserFolder:ParserFolder firewalls 0000000000000001
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Sumo Logic sumologic/terraform-provider-sumologic
- License
- Notes
- This Pulumi package is based on the
sumologicTerraform Provider.
published on Wednesday, Nov 11, 2026 by sumologic