You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of version 7.0.0, the `btool` command has been removed from solnlib. Configuration stanzas and keys should now be accessed via the REST API.
4
+
Additionally, the `splunkenv` module can only be used in environments where Splunk is installed, as it relies on Splunk-specific methods for making internal calls.
5
+
6
+
## Session key is now mandatory in some of the functions
7
+
8
+
The affected functions now require a valid `session_key` to operate correctly. While solnlib attempts to retrieve the `session_key` automatically,
9
+
there are scenarios—such as within a modular input script—where this is not possible. In such cases, you must explicitly provide the `session_key`
10
+
to ensure proper authorization. Affected functions are:
11
+
12
+
*`get_splunk_host_info`
13
+
*`get_splunkd_access_info`
14
+
*`get_scheme_from_hec_settings`
15
+
*`get_splunkd_uri`
16
+
*`get_conf_key_value`
17
+
*`get_conf_stanza`
18
+
19
+
## Changed arguments in `get_conf_key_value` and `get_conf_stanza`
20
+
21
+
As of version 7.0.0, the following changes have been made to the function:
22
+
23
+
`get_conf_key_value` now requires 4 mandatory arguments:
24
+
25
+
*`conf_name`
26
+
*`stanza`
27
+
*`key`
28
+
*`app_name` (new)
29
+
30
+
`get_conf_stanza` now requires 3 mandatory arguments:
31
+
32
+
*`conf_name`
33
+
*`stanza`
34
+
*`app_name` (new)
35
+
36
+
Both functions also accept the following optional arguments:
37
+
38
+
*`session_key` - Used for authentication. If not provided, a 401 Unauthorized error may occur depending on the context.
39
+
*`users` - Limits results returned by the configuration endpoint. Defaults to `nobody`.
40
+
*`raw_output` - If set to `True`, the full decoded JSON response is returned.
41
+
This should be enabled when `app_name` is set to the global context `(/-/)`, as the Splunk REST API may return multiple entries in that case.
42
+
43
+
## The `get_session_key` function has been removed from solnlib
44
+
45
+
This function relied on reading the `scheme`, `host` and `port` using the deprecated btool utility, which is no longer supported.
0 commit comments