published on Thursday, Jul 23, 2026 by elastic
published on Thursday, Jul 23, 2026 by elastic
Manages a user-defined Osquery query pack in Kibana. Requires Kibana 8.5.0 or later. Prebuilt packs shipped with the osquery_manager integration cannot be managed by this resource; use the elasticstack.KibanaOsqueryPack data source to read them instead.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
example:
type: elasticstack:KibanaOsqueryPack
properties:
name: example-osquery-pack
description: Example Osquery pack managed by Terraform
enabled: true
queries:
find_procs:
query: SELECT pid, name FROM processes LIMIT 5;
platform:
- linux
- darwin
version: 1.0.0
ecsMapping:
process.name:
field: name
process.pid:
value: '0'
host.name:
values:
- host-a
- host-b
Example coming soon!
Create KibanaOsqueryPack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KibanaOsqueryPack(name: string, args: KibanaOsqueryPackArgs, opts?: CustomResourceOptions);@overload
def KibanaOsqueryPack(resource_name: str,
args: KibanaOsqueryPackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KibanaOsqueryPack(resource_name: str,
opts: Optional[ResourceOptions] = None,
queries: Optional[Mapping[str, KibanaOsqueryPackQueriesArgs]] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
kibana_connections: Optional[Sequence[KibanaOsqueryPackKibanaConnectionArgs]] = None,
name: Optional[str] = None,
policy_ids: Optional[Sequence[str]] = None,
shards: Optional[Mapping[str, float]] = None,
space_id: Optional[str] = None,
timeouts: Optional[KibanaOsqueryPackTimeoutsArgs] = None)func NewKibanaOsqueryPack(ctx *Context, name string, args KibanaOsqueryPackArgs, opts ...ResourceOption) (*KibanaOsqueryPack, error)public KibanaOsqueryPack(string name, KibanaOsqueryPackArgs args, CustomResourceOptions? opts = null)
public KibanaOsqueryPack(String name, KibanaOsqueryPackArgs args)
public KibanaOsqueryPack(String name, KibanaOsqueryPackArgs args, CustomResourceOptions options)
type: elasticstack:KibanaOsqueryPack
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "elasticstack_kibana_osquery_pack" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args KibanaOsqueryPackArgs
- 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 KibanaOsqueryPackArgs
- 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 KibanaOsqueryPackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KibanaOsqueryPackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KibanaOsqueryPackArgs
- 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 kibanaOsqueryPackResource = new Elasticstack.KibanaOsqueryPack("kibanaOsqueryPackResource", new()
{
Queries =
{
{ "string", new Elasticstack.Inputs.KibanaOsqueryPackQueriesArgs
{
Query = "string",
EcsMapping =
{
{ "string", new Elasticstack.Inputs.KibanaOsqueryPackQueriesEcsMappingArgs
{
Field = "string",
Value = "string",
Values = new[]
{
"string",
},
} },
},
Platforms = new[]
{
"string",
},
Removed = false,
SavedQueryId = "string",
Snapshot = false,
Version = "string",
} },
},
Description = "string",
Enabled = false,
KibanaConnections = new[]
{
new Elasticstack.Inputs.KibanaOsqueryPackKibanaConnectionArgs
{
ApiKey = "string",
BearerToken = "string",
CaCerts = new[]
{
"string",
},
Endpoints = new[]
{
"string",
},
Insecure = false,
Password = "string",
Username = "string",
},
},
Name = "string",
PolicyIds = new[]
{
"string",
},
Shards =
{
{ "string", 0 },
},
SpaceId = "string",
Timeouts = new Elasticstack.Inputs.KibanaOsqueryPackTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := elasticstack.NewKibanaOsqueryPack(ctx, "kibanaOsqueryPackResource", &elasticstack.KibanaOsqueryPackArgs{
Queries: elasticstack.KibanaOsqueryPackQueriesMap{
"string": &elasticstack.KibanaOsqueryPackQueriesArgs{
Query: pulumi.String("string"),
EcsMapping: elasticstack.KibanaOsqueryPackQueriesEcsMappingMap{
"string": &elasticstack.KibanaOsqueryPackQueriesEcsMappingArgs{
Field: pulumi.String("string"),
Value: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Platforms: pulumi.StringArray{
pulumi.String("string"),
},
Removed: pulumi.Bool(false),
SavedQueryId: pulumi.String("string"),
Snapshot: pulumi.Bool(false),
Version: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
KibanaConnections: elasticstack.KibanaOsqueryPackKibanaConnectionArray{
&elasticstack.KibanaOsqueryPackKibanaConnectionArgs{
ApiKey: pulumi.String("string"),
BearerToken: pulumi.String("string"),
CaCerts: pulumi.StringArray{
pulumi.String("string"),
},
Endpoints: pulumi.StringArray{
pulumi.String("string"),
},
Insecure: pulumi.Bool(false),
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
PolicyIds: pulumi.StringArray{
pulumi.String("string"),
},
Shards: pulumi.Float64Map{
"string": pulumi.Float64(0),
},
SpaceId: pulumi.String("string"),
Timeouts: &elasticstack.KibanaOsqueryPackTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "elasticstack_kibana_osquery_pack" "kibanaOsqueryPackResource" {
lifecycle {
create_before_destroy = true
}
queries = {
"string" = {
query = "string"
ecs_mapping = {
"string" = {
field = "string"
value = "string"
values = ["string"]
}
}
platforms = ["string"]
removed = false
saved_query_id = "string"
snapshot = false
version = "string"
}
}
description = "string"
enabled = false
kibana_connections {
api_key = "string"
bearer_token = "string"
ca_certs = ["string"]
endpoints = ["string"]
insecure = false
password = "string"
username = "string"
}
name = "string"
policy_ids = ["string"]
shards = {
"string" = 0
}
space_id = "string"
timeouts = {
create = "string"
delete = "string"
read = "string"
update = "string"
}
}
var kibanaOsqueryPackResource = new KibanaOsqueryPack("kibanaOsqueryPackResource", KibanaOsqueryPackArgs.builder()
.queries(Map.of("string", KibanaOsqueryPackQueriesArgs.builder()
.query("string")
.ecsMapping(Map.of("string", KibanaOsqueryPackQueriesEcsMappingArgs.builder()
.field("string")
.value("string")
.values("string")
.build()))
.platforms("string")
.removed(false)
.savedQueryId("string")
.snapshot(false)
.version("string")
.build()))
.description("string")
.enabled(false)
.kibanaConnections(KibanaOsqueryPackKibanaConnectionArgs.builder()
.apiKey("string")
.bearerToken("string")
.caCerts("string")
.endpoints("string")
.insecure(false)
.password("string")
.username("string")
.build())
.name("string")
.policyIds("string")
.shards(Map.of("string", 0.0))
.spaceId("string")
.timeouts(KibanaOsqueryPackTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
kibana_osquery_pack_resource = elasticstack.KibanaOsqueryPack("kibanaOsqueryPackResource",
queries={
"string": {
"query": "string",
"ecs_mapping": {
"string": {
"field": "string",
"value": "string",
"values": ["string"],
},
},
"platforms": ["string"],
"removed": False,
"saved_query_id": "string",
"snapshot": False,
"version": "string",
},
},
description="string",
enabled=False,
kibana_connections=[{
"api_key": "string",
"bearer_token": "string",
"ca_certs": ["string"],
"endpoints": ["string"],
"insecure": False,
"password": "string",
"username": "string",
}],
name="string",
policy_ids=["string"],
shards={
"string": float(0),
},
space_id="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const kibanaOsqueryPackResource = new elasticstack.KibanaOsqueryPack("kibanaOsqueryPackResource", {
queries: {
string: {
query: "string",
ecsMapping: {
string: {
field: "string",
value: "string",
values: ["string"],
},
},
platforms: ["string"],
removed: false,
savedQueryId: "string",
snapshot: false,
version: "string",
},
},
description: "string",
enabled: false,
kibanaConnections: [{
apiKey: "string",
bearerToken: "string",
caCerts: ["string"],
endpoints: ["string"],
insecure: false,
password: "string",
username: "string",
}],
name: "string",
policyIds: ["string"],
shards: {
string: 0,
},
spaceId: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: elasticstack:KibanaOsqueryPack
properties:
description: string
enabled: false
kibanaConnections:
- apiKey: string
bearerToken: string
caCerts:
- string
endpoints:
- string
insecure: false
password: string
username: string
name: string
policyIds:
- string
queries:
string:
ecsMapping:
string:
field: string
value: string
values:
- string
platforms:
- string
query: string
removed: false
savedQueryId: string
snapshot: false
version: string
shards:
string: 0
spaceId: string
timeouts:
create: string
delete: string
read: string
update: string
KibanaOsqueryPack 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 KibanaOsqueryPack resource accepts the following input properties:
- Queries
Dictionary<string, Kibana
Osquery Pack Queries Args> - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- Description string
- Description of the Osquery pack.
- Enabled bool
- Whether the pack is enabled.
- Kibana
Connections List<KibanaOsquery Pack Kibana Connection> - Kibana connection configuration block.
- Name string
- Human-readable name of the Osquery pack.
- Policy
Ids List<string> - Fleet agent policy IDs this pack is deployed to.
- Dictionary<string, double>
- Percent (1-100) of hosts per policy ID that receive the pack.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Timeouts
Kibana
Osquery Pack Timeouts
- Queries
map[string]Kibana
Osquery Pack Queries Args - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- Description string
- Description of the Osquery pack.
- Enabled bool
- Whether the pack is enabled.
- Kibana
Connections []KibanaOsquery Pack Kibana Connection Args - Kibana connection configuration block.
- Name string
- Human-readable name of the Osquery pack.
- Policy
Ids []string - Fleet agent policy IDs this pack is deployed to.
- map[string]float64
- Percent (1-100) of hosts per policy ID that receive the pack.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Timeouts
Kibana
Osquery Pack Timeouts Args
- queries map(object)
- Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- description string
- Description of the Osquery pack.
- enabled bool
- Whether the pack is enabled.
- kibana_
connections list(object) - Kibana connection configuration block.
- name string
- Human-readable name of the Osquery pack.
- policy_
ids list(string) - Fleet agent policy IDs this pack is deployed to.
- map(number)
- Percent (1-100) of hosts per policy ID that receive the pack.
- space_
id string - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts object
- queries
Map<String,Kibana
Osquery Pack Queries Args> - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- description String
- Description of the Osquery pack.
- enabled Boolean
- Whether the pack is enabled.
- kibana
Connections List<KibanaOsquery Pack Kibana Connection> - Kibana connection configuration block.
- name String
- Human-readable name of the Osquery pack.
- policy
Ids List<String> - Fleet agent policy IDs this pack is deployed to.
- Map<String,Double>
- Percent (1-100) of hosts per policy ID that receive the pack.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts
Kibana
Osquery Pack Timeouts
- queries
{[key: string]: Kibana
Osquery Pack Queries Args} - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- description string
- Description of the Osquery pack.
- enabled boolean
- Whether the pack is enabled.
- kibana
Connections KibanaOsquery Pack Kibana Connection[] - Kibana connection configuration block.
- name string
- Human-readable name of the Osquery pack.
- policy
Ids string[] - Fleet agent policy IDs this pack is deployed to.
- {[key: string]: number}
- Percent (1-100) of hosts per policy ID that receive the pack.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts
Kibana
Osquery Pack Timeouts
- queries
Mapping[str, Kibana
Osquery Pack Queries Args] - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- description str
- Description of the Osquery pack.
- enabled bool
- Whether the pack is enabled.
- kibana_
connections Sequence[KibanaOsquery Pack Kibana Connection Args] - Kibana connection configuration block.
- name str
- Human-readable name of the Osquery pack.
- policy_
ids Sequence[str] - Fleet agent policy IDs this pack is deployed to.
- Mapping[str, float]
- Percent (1-100) of hosts per policy ID that receive the pack.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts
Kibana
Osquery Pack Timeouts Args
- queries Map<Property Map>
- Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- description String
- Description of the Osquery pack.
- enabled Boolean
- Whether the pack is enabled.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- name String
- Human-readable name of the Osquery pack.
- policy
Ids List<String> - Fleet agent policy IDs this pack is deployed to.
- Map<Number>
- Percent (1-100) of hosts per policy ID that receive the pack.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the KibanaOsqueryPack resource produces the following output properties:
Look up Existing KibanaOsqueryPack Resource
Get an existing KibanaOsqueryPack 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?: KibanaOsqueryPackState, opts?: CustomResourceOptions): KibanaOsqueryPack@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
kibana_connections: Optional[Sequence[KibanaOsqueryPackKibanaConnectionArgs]] = None,
name: Optional[str] = None,
pack_id: Optional[str] = None,
policy_ids: Optional[Sequence[str]] = None,
queries: Optional[Mapping[str, KibanaOsqueryPackQueriesArgs]] = None,
shards: Optional[Mapping[str, float]] = None,
space_id: Optional[str] = None,
timeouts: Optional[KibanaOsqueryPackTimeoutsArgs] = None) -> KibanaOsqueryPackfunc GetKibanaOsqueryPack(ctx *Context, name string, id IDInput, state *KibanaOsqueryPackState, opts ...ResourceOption) (*KibanaOsqueryPack, error)public static KibanaOsqueryPack Get(string name, Input<string> id, KibanaOsqueryPackState? state, CustomResourceOptions? opts = null)public static KibanaOsqueryPack get(String name, Output<String> id, KibanaOsqueryPackState state, CustomResourceOptions options)resources: _: type: elasticstack:KibanaOsqueryPack get: id: ${id}import {
to = elasticstack_kibana_osquery_pack.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.
- Description string
- Description of the Osquery pack.
- Enabled bool
- Whether the pack is enabled.
- Kibana
Connections List<KibanaOsquery Pack Kibana Connection> - Kibana connection configuration block.
- Name string
- Human-readable name of the Osquery pack.
- Pack
Id string - Server-generated Kibana saved object identifier for the pack (
saved_object_id). - Policy
Ids List<string> - Fleet agent policy IDs this pack is deployed to.
- Queries
Dictionary<string, Kibana
Osquery Pack Queries Args> - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- Shards Dictionary<string, double>
- Percent (1-100) of hosts per policy ID that receive the pack.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Timeouts
Kibana
Osquery Pack Timeouts
- Description string
- Description of the Osquery pack.
- Enabled bool
- Whether the pack is enabled.
- Kibana
Connections []KibanaOsquery Pack Kibana Connection Args - Kibana connection configuration block.
- Name string
- Human-readable name of the Osquery pack.
- Pack
Id string - Server-generated Kibana saved object identifier for the pack (
saved_object_id). - Policy
Ids []string - Fleet agent policy IDs this pack is deployed to.
- Queries
map[string]Kibana
Osquery Pack Queries Args - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- Shards map[string]float64
- Percent (1-100) of hosts per policy ID that receive the pack.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Timeouts
Kibana
Osquery Pack Timeouts Args
- description string
- Description of the Osquery pack.
- enabled bool
- Whether the pack is enabled.
- kibana_
connections list(object) - Kibana connection configuration block.
- name string
- Human-readable name of the Osquery pack.
- pack_
id string - Server-generated Kibana saved object identifier for the pack (
saved_object_id). - policy_
ids list(string) - Fleet agent policy IDs this pack is deployed to.
- queries map(object)
- Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- shards map(number)
- Percent (1-100) of hosts per policy ID that receive the pack.
- space_
id string - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts object
- description String
- Description of the Osquery pack.
- enabled Boolean
- Whether the pack is enabled.
- kibana
Connections List<KibanaOsquery Pack Kibana Connection> - Kibana connection configuration block.
- name String
- Human-readable name of the Osquery pack.
- pack
Id String - Server-generated Kibana saved object identifier for the pack (
saved_object_id). - policy
Ids List<String> - Fleet agent policy IDs this pack is deployed to.
- queries
Map<String,Kibana
Osquery Pack Queries Args> - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- shards Map<String,Double>
- Percent (1-100) of hosts per policy ID that receive the pack.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts
Kibana
Osquery Pack Timeouts
- description string
- Description of the Osquery pack.
- enabled boolean
- Whether the pack is enabled.
- kibana
Connections KibanaOsquery Pack Kibana Connection[] - Kibana connection configuration block.
- name string
- Human-readable name of the Osquery pack.
- pack
Id string - Server-generated Kibana saved object identifier for the pack (
saved_object_id). - policy
Ids string[] - Fleet agent policy IDs this pack is deployed to.
- queries
{[key: string]: Kibana
Osquery Pack Queries Args} - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- shards {[key: string]: number}
- Percent (1-100) of hosts per policy ID that receive the pack.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts
Kibana
Osquery Pack Timeouts
- description str
- Description of the Osquery pack.
- enabled bool
- Whether the pack is enabled.
- kibana_
connections Sequence[KibanaOsquery Pack Kibana Connection Args] - Kibana connection configuration block.
- name str
- Human-readable name of the Osquery pack.
- pack_
id str - Server-generated Kibana saved object identifier for the pack (
saved_object_id). - policy_
ids Sequence[str] - Fleet agent policy IDs this pack is deployed to.
- queries
Mapping[str, Kibana
Osquery Pack Queries Args] - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- shards Mapping[str, float]
- Percent (1-100) of hosts per policy ID that receive the pack.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts
Kibana
Osquery Pack Timeouts Args
- description String
- Description of the Osquery pack.
- enabled Boolean
- Whether the pack is enabled.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- name String
- Human-readable name of the Osquery pack.
- pack
Id String - Server-generated Kibana saved object identifier for the pack (
saved_object_id). - policy
Ids List<String> - Fleet agent policy IDs this pack is deployed to.
- queries Map<Property Map>
- Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- shards Map<Number>
- Percent (1-100) of hosts per policy ID that receive the pack.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- timeouts Property Map
Supporting Types
KibanaOsqueryPackKibanaConnection, KibanaOsqueryPackKibanaConnectionArgs
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs List<string> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints List<string>
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs []string - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints []string
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- api_
key string - API Key to use for authentication to Kibana
- bearer_
token string - Bearer Token to use for authentication to Kibana
- ca_
certs list(string) - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints list(string)
- insecure bool
- Disable TLS certificate validation
- password string
- Password to use for API authentication to Kibana.
- username string
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- insecure Boolean
- Disable TLS certificate validation
- password String
- Password to use for API authentication to Kibana.
- username String
- Username to use for API authentication to Kibana.
- api
Key string - API Key to use for authentication to Kibana
- bearer
Token string - Bearer Token to use for authentication to Kibana
- ca
Certs string[] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints string[]
- insecure boolean
- Disable TLS certificate validation
- password string
- Password to use for API authentication to Kibana.
- username string
- Username to use for API authentication to Kibana.
- api_
key str - API Key to use for authentication to Kibana
- bearer_
token str - Bearer Token to use for authentication to Kibana
- ca_
certs Sequence[str] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints Sequence[str]
- insecure bool
- Disable TLS certificate validation
- password str
- Password to use for API authentication to Kibana.
- username str
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- insecure Boolean
- Disable TLS certificate validation
- password String
- Password to use for API authentication to Kibana.
- username String
- Username to use for API authentication to Kibana.
KibanaOsqueryPackQueries, KibanaOsqueryPackQueriesArgs
- Query string
- Osquery SQL query text.
- Ecs
Mapping Dictionary<string, KibanaOsquery Pack Queries Ecs Mapping> - Maps query result columns to ECS field paths. Each map value must set exactly one of
field,value, orvalues. - Platforms List<string>
- Target platforms for the query. Allowed values:
linux,darwin,windows. - Removed bool
- Whether the query is marked removed. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - Saved
Query stringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - Snapshot bool
- Whether the query is a snapshot. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - Version string
- Query version string.
- Query string
- Osquery SQL query text.
- Ecs
Mapping map[string]KibanaOsquery Pack Queries Ecs Mapping - Maps query result columns to ECS field paths. Each map value must set exactly one of
field,value, orvalues. - Platforms []string
- Target platforms for the query. Allowed values:
linux,darwin,windows. - Removed bool
- Whether the query is marked removed. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - Saved
Query stringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - Snapshot bool
- Whether the query is a snapshot. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - Version string
- Query version string.
- query string
- Osquery SQL query text.
- ecs_
mapping map(object) - Maps query result columns to ECS field paths. Each map value must set exactly one of
field,value, orvalues. - platforms list(string)
- Target platforms for the query. Allowed values:
linux,darwin,windows. - removed bool
- Whether the query is marked removed. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - saved_
query_ stringid - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot bool
- Whether the query is a snapshot. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - version string
- Query version string.
- query String
- Osquery SQL query text.
- ecs
Mapping Map<String,KibanaOsquery Pack Queries Ecs Mapping> - Maps query result columns to ECS field paths. Each map value must set exactly one of
field,value, orvalues. - platforms List<String>
- Target platforms for the query. Allowed values:
linux,darwin,windows. - removed Boolean
- Whether the query is marked removed. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - saved
Query StringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot Boolean
- Whether the query is a snapshot. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - version String
- Query version string.
- query string
- Osquery SQL query text.
- ecs
Mapping {[key: string]: KibanaOsquery Pack Queries Ecs Mapping} - Maps query result columns to ECS field paths. Each map value must set exactly one of
field,value, orvalues. - platforms string[]
- Target platforms for the query. Allowed values:
linux,darwin,windows. - removed boolean
- Whether the query is marked removed. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - saved
Query stringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot boolean
- Whether the query is a snapshot. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - version string
- Query version string.
- query str
- Osquery SQL query text.
- ecs_
mapping Mapping[str, KibanaOsquery Pack Queries Ecs Mapping] - Maps query result columns to ECS field paths. Each map value must set exactly one of
field,value, orvalues. - platforms Sequence[str]
- Target platforms for the query. Allowed values:
linux,darwin,windows. - removed bool
- Whether the query is marked removed. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - saved_
query_ strid - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot bool
- Whether the query is a snapshot. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - version str
- Query version string.
- query String
- Osquery SQL query text.
- ecs
Mapping Map<Property Map> - Maps query result columns to ECS field paths. Each map value must set exactly one of
field,value, orvalues. - platforms List<String>
- Target platforms for the query. Allowed values:
linux,darwin,windows. - removed Boolean
- Whether the query is marked removed. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - saved
Query StringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot Boolean
- Whether the query is a snapshot. Returned by the API and may be set explicitly in configuration. When omitted or unknown at plan time, the prior state value is preserved (
UseStateForUnknown). - version String
- Query version string.
KibanaOsqueryPackQueriesEcsMapping, KibanaOsqueryPackQueriesEcsMappingArgs
KibanaOsqueryPackTimeouts, KibanaOsqueryPackTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
The pulumi import command can be used, for example:
Import user-managed Osquery packs only. Prebuilt/read-only packs cannot be imported
into the resource; read them with the elasticstack_kibana_osquery_pack data source.
pack_id is the Kibana saved_object_id (UUID) for the pack.
$ pulumi import elasticstack:index/kibanaOsqueryPack:KibanaOsqueryPack example <space_id>/<pack_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
published on Thursday, Jul 23, 2026 by elastic