Viewing docs for elasticstack 0.16.3
published on Thursday, Jul 23, 2026 by elastic
published on Thursday, Jul 23, 2026 by elastic
Viewing docs for elasticstack 0.16.3
published on Thursday, Jul 23, 2026 by elastic
published on Thursday, Jul 23, 2026 by elastic
Reads any Osquery query pack from Kibana by pack_id (saved_object_id), including user-defined and prebuilt (read-only) packs. Prebuilt packs cannot be managed by the elasticstack.KibanaOsqueryPack resource. Requires Kibana 8.5.0 or later.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
# Read a user-managed pack created in the same root module (plan-only friendly).
example:
type: elasticstack:KibanaOsqueryPack
properties:
name: example-osquery-pack
enabled: true
queries:
find_procs:
query: SELECT pid, name FROM processes LIMIT 5;
platform:
- linux
- darwin
variables:
managed:
fn::invoke:
function: elasticstack:getKibanaOsqueryPack
arguments:
packId: ${example.packId}
outputs:
managedPackName: ${managed.name}
Example coming soon!
Using getKibanaOsqueryPack
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKibanaOsqueryPack(args: GetKibanaOsqueryPackArgs, opts?: InvokeOptions): Promise<GetKibanaOsqueryPackResult>
function getKibanaOsqueryPackOutput(args: GetKibanaOsqueryPackOutputArgs, opts?: InvokeOutputOptions): Output<GetKibanaOsqueryPackResult>def get_kibana_osquery_pack(kibana_connections: Optional[Sequence[GetKibanaOsqueryPackKibanaConnection]] = None,
pack_id: Optional[str] = None,
space_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKibanaOsqueryPackResult
def get_kibana_osquery_pack_output(kibana_connections: pulumi.Input[Optional[Sequence[pulumi.Input[GetKibanaOsqueryPackKibanaConnectionArgs]]]] = None,
pack_id: pulumi.Input[Optional[str]] = None,
space_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetKibanaOsqueryPackResult]func LookupKibanaOsqueryPack(ctx *Context, args *LookupKibanaOsqueryPackArgs, opts ...InvokeOption) (*LookupKibanaOsqueryPackResult, error)
func LookupKibanaOsqueryPackOutput(ctx *Context, args *LookupKibanaOsqueryPackOutputArgs, opts ...InvokeOption) LookupKibanaOsqueryPackResultOutput> Note: This function is named LookupKibanaOsqueryPack in the Go SDK.
public static class GetKibanaOsqueryPack
{
public static Task<GetKibanaOsqueryPackResult> InvokeAsync(GetKibanaOsqueryPackArgs args, InvokeOptions? opts = null)
public static Output<GetKibanaOsqueryPackResult> Invoke(GetKibanaOsqueryPackInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetKibanaOsqueryPackResult> Invoke(GetKibanaOsqueryPackInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetKibanaOsqueryPackResult> getKibanaOsqueryPack(GetKibanaOsqueryPackArgs args, InvokeOptions options)
public static Output<GetKibanaOsqueryPackResult> getKibanaOsqueryPack(GetKibanaOsqueryPackArgs args, InvokeOptions options)
public static Output<GetKibanaOsqueryPackResult> getKibanaOsqueryPack(GetKibanaOsqueryPackArgs args, InvokeOutputOptions options)
fn::invoke:
function: elasticstack:index/getKibanaOsqueryPack:getKibanaOsqueryPack
arguments:
# arguments dictionarydata "elasticstack_get_kibana_osquery_pack" "name" {
# arguments
}The following arguments are supported:
- Pack
Id string - Kibana saved object identifier for the pack (
saved_object_id). - Kibana
Connections List<GetKibana Osquery Pack Kibana Connection> - Kibana connection configuration block.
- Space
Id string - Kibana space identifier. When omitted, the default space is used.
- Pack
Id string - Kibana saved object identifier for the pack (
saved_object_id). - Kibana
Connections []GetKibana Osquery Pack Kibana Connection - Kibana connection configuration block.
- Space
Id string - Kibana space identifier. When omitted, the default space is used.
- pack_
id string - Kibana saved object identifier for the pack (
saved_object_id). - kibana_
connections list(object) - Kibana connection configuration block.
- space_
id string - Kibana space identifier. When omitted, the default space is used.
- pack
Id String - Kibana saved object identifier for the pack (
saved_object_id). - kibana
Connections List<GetKibana Osquery Pack Kibana Connection> - Kibana connection configuration block.
- space
Id String - Kibana space identifier. When omitted, the default space is used.
- pack
Id string - Kibana saved object identifier for the pack (
saved_object_id). - kibana
Connections GetKibana Osquery Pack Kibana Connection[] - Kibana connection configuration block.
- space
Id string - Kibana space identifier. When omitted, the default space is used.
- pack_
id str - Kibana saved object identifier for the pack (
saved_object_id). - kibana_
connections Sequence[GetKibana Osquery Pack Kibana Connection] - Kibana connection configuration block.
- space_
id str - Kibana space identifier. When omitted, the default space is used.
- pack
Id String - Kibana saved object identifier for the pack (
saved_object_id). - kibana
Connections List<Property Map> - Kibana connection configuration block.
- space
Id String - Kibana space identifier. When omitted, the default space is used.
getKibanaOsqueryPack Result
The following output properties are available:
- Description string
- Description of the Osquery pack.
- Enabled bool
- Whether the pack is enabled.
- Id string
- Composite identifier in the form
<space_id>/<pack_id>. - Name string
- Human-readable name of the Osquery pack.
- Pack
Id string - 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, Get
Kibana Osquery Pack Queries> - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- Read
Only bool - Whether the pack is prebuilt and read-only. Prebuilt packs can be read by this data source but not managed by the resource.
- Dictionary<string, double>
- Percent (1-100) of hosts per policy ID that receive the pack.
- Kibana
Connections List<GetKibana Osquery Pack Kibana Connection> - Kibana connection configuration block.
- Space
Id string - Kibana space identifier. When omitted, the default space is used.
- Description string
- Description of the Osquery pack.
- Enabled bool
- Whether the pack is enabled.
- Id string
- Composite identifier in the form
<space_id>/<pack_id>. - Name string
- Human-readable name of the Osquery pack.
- Pack
Id string - 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]Get
Kibana Osquery Pack Queries - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- Read
Only bool - Whether the pack is prebuilt and read-only. Prebuilt packs can be read by this data source but not managed by the resource.
- map[string]float64
- Percent (1-100) of hosts per policy ID that receive the pack.
- Kibana
Connections []GetKibana Osquery Pack Kibana Connection - Kibana connection configuration block.
- Space
Id string - Kibana space identifier. When omitted, the default space is used.
- description string
- Description of the Osquery pack.
- enabled bool
- Whether the pack is enabled.
- id string
- Composite identifier in the form
<space_id>/<pack_id>. - name string
- Human-readable name of the Osquery pack.
- pack_
id string - 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).
- read_
only bool - Whether the pack is prebuilt and read-only. Prebuilt packs can be read by this data source but not managed by the resource.
- map(number)
- Percent (1-100) of hosts per policy ID that receive the pack.
- kibana_
connections list(object) - Kibana connection configuration block.
- space_
id string - Kibana space identifier. When omitted, the default space is used.
- description String
- Description of the Osquery pack.
- enabled Boolean
- Whether the pack is enabled.
- id String
- Composite identifier in the form
<space_id>/<pack_id>. - name String
- Human-readable name of the Osquery pack.
- pack
Id String - 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,Get
Kibana Osquery Pack Queries> - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- read
Only Boolean - Whether the pack is prebuilt and read-only. Prebuilt packs can be read by this data source but not managed by the resource.
- Map<String,Double>
- Percent (1-100) of hosts per policy ID that receive the pack.
- kibana
Connections List<GetKibana Osquery Pack Kibana Connection> - Kibana connection configuration block.
- space
Id String - Kibana space identifier. When omitted, the default space is used.
- description string
- Description of the Osquery pack.
- enabled boolean
- Whether the pack is enabled.
- id string
- Composite identifier in the form
<space_id>/<pack_id>. - name string
- Human-readable name of the Osquery pack.
- pack
Id string - 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]: Get
Kibana Osquery Pack Queries} - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- read
Only boolean - Whether the pack is prebuilt and read-only. Prebuilt packs can be read by this data source but not managed by the resource.
- {[key: string]: number}
- Percent (1-100) of hosts per policy ID that receive the pack.
- kibana
Connections GetKibana Osquery Pack Kibana Connection[] - Kibana connection configuration block.
- space
Id string - Kibana space identifier. When omitted, the default space is used.
- description str
- Description of the Osquery pack.
- enabled bool
- Whether the pack is enabled.
- id str
- Composite identifier in the form
<space_id>/<pack_id>. - name str
- Human-readable name of the Osquery pack.
- pack_
id str - 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, Get
Kibana Osquery Pack Queries] - Osquery queries in the pack. Map keys are query names (canonical identifiers in Kibana).
- read_
only bool - Whether the pack is prebuilt and read-only. Prebuilt packs can be read by this data source but not managed by the resource.
- Mapping[str, float]
- Percent (1-100) of hosts per policy ID that receive the pack.
- kibana_
connections Sequence[GetKibana Osquery Pack Kibana Connection] - Kibana connection configuration block.
- space_
id str - Kibana space identifier. When omitted, the default space is used.
- description String
- Description of the Osquery pack.
- enabled Boolean
- Whether the pack is enabled.
- id String
- Composite identifier in the form
<space_id>/<pack_id>. - name String
- Human-readable name of the Osquery pack.
- pack
Id String - 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).
- read
Only Boolean - Whether the pack is prebuilt and read-only. Prebuilt packs can be read by this data source but not managed by the resource.
- Map<Number>
- Percent (1-100) of hosts per policy ID that receive the pack.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- space
Id String - Kibana space identifier. When omitted, the default space is used.
Supporting Types
GetKibanaOsqueryPackKibanaConnection
- 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.
GetKibanaOsqueryPackQueries
- Ecs
Mapping Dictionary<string, GetKibana Osquery Pack Queries Ecs Mapping> - Maps query result columns to ECS field paths.
- Platforms List<string>
- Target platforms for the query. Allowed values:
linux,darwin,windows. - Query string
- Osquery SQL query text.
- Removed bool
- Whether the query is marked removed.
- Saved
Query stringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - Snapshot bool
- Whether the query is a snapshot.
- Version string
- Query version string.
- Ecs
Mapping map[string]GetKibana Osquery Pack Queries Ecs Mapping - Maps query result columns to ECS field paths.
- Platforms []string
- Target platforms for the query. Allowed values:
linux,darwin,windows. - Query string
- Osquery SQL query text.
- Removed bool
- Whether the query is marked removed.
- Saved
Query stringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - Snapshot bool
- Whether the query is a snapshot.
- Version string
- Query version string.
- ecs_
mapping map(object) - Maps query result columns to ECS field paths.
- platforms list(string)
- Target platforms for the query. Allowed values:
linux,darwin,windows. - query string
- Osquery SQL query text.
- removed bool
- Whether the query is marked removed.
- saved_
query_ stringid - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot bool
- Whether the query is a snapshot.
- version string
- Query version string.
- ecs
Mapping Map<String,GetKibana Osquery Pack Queries Ecs Mapping> - Maps query result columns to ECS field paths.
- platforms List<String>
- Target platforms for the query. Allowed values:
linux,darwin,windows. - query String
- Osquery SQL query text.
- removed Boolean
- Whether the query is marked removed.
- saved
Query StringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot Boolean
- Whether the query is a snapshot.
- version String
- Query version string.
- ecs
Mapping {[key: string]: GetKibana Osquery Pack Queries Ecs Mapping} - Maps query result columns to ECS field paths.
- platforms string[]
- Target platforms for the query. Allowed values:
linux,darwin,windows. - query string
- Osquery SQL query text.
- removed boolean
- Whether the query is marked removed.
- saved
Query stringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot boolean
- Whether the query is a snapshot.
- version string
- Query version string.
- ecs_
mapping Mapping[str, GetKibana Osquery Pack Queries Ecs Mapping] - Maps query result columns to ECS field paths.
- platforms Sequence[str]
- Target platforms for the query. Allowed values:
linux,darwin,windows. - query str
- Osquery SQL query text.
- removed bool
- Whether the query is marked removed.
- saved_
query_ strid - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot bool
- Whether the query is a snapshot.
- version str
- Query version string.
- ecs
Mapping Map<Property Map> - Maps query result columns to ECS field paths.
- platforms List<String>
- Target platforms for the query. Allowed values:
linux,darwin,windows. - query String
- Osquery SQL query text.
- removed Boolean
- Whether the query is marked removed.
- saved
Query StringId - References an
elasticstack.KibanaOsquerySavedQueryresource. - snapshot Boolean
- Whether the query is a snapshot.
- version String
- Query version string.
GetKibanaOsqueryPackQueriesEcsMapping
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
Viewing docs for elasticstack 0.16.3
published on Thursday, Jul 23, 2026 by elastic
published on Thursday, Jul 23, 2026 by elastic