Skip to content

Splunk 凭据#

¥Splunk credentials

你可以使用以下凭据验证以下节点:

¥You can use these credentials to authenticate the following nodes:

先决条件#

¥Prerequisites

¥Download and install Splunk Enterprise.

¥Enable token authentication in Settings > Tokens.

Free trial Splunk Cloud Platform accounts can't access the REST API

Splunk Cloud Platform 免费试用账户无法访问 REST API。确保你拥有必要的权限。请参阅 Splunk Cloud Platform REST API 的访问要求和限制 获取更多详细信息。

¥Free trial Splunk Cloud Platform accounts don't have access to the REST API. Ensure you have the necessary permissions. Refer to Access requirements and limitations for the Splunk Cloud Platform REST API for more details.

支持的身份验证方法#

¥Supported authentication methods

  • API 身份验证令牌

¥API auth token

相关资源#

¥Related resources

有关服务的更多信息,请参阅 Splunk 企业版 API 文档

¥Refer to Splunk's Enterprise API documentation for more information about the service.

使用 API 身份验证令牌#

¥Using API auth token

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • 授权令牌:启用令牌认证后,请在“设置”>“令牌”中创建身份验证令牌。有关更多信息,请参阅 创建身份验证令牌

¥An Auth Token: Once you've enabled token authentication, create an auth token in Settings > Tokens. Refer to Creating authentication tokens for more information.

  • 基本 URL:对于你的 Splunk 实例。这应该包含协议、域名和端口,例如:https://localhost:8089

¥A Base URL: For your Splunk instance. This should include the protocol, domain, and port, for example: https://localhost:8089.

  • 允许自签名证书:如果启用,即使 SSL 验证失败,n8n 也会连接。

¥Allow Self-Signed Certificates: If turned on, n8n will connect even if SSL validation fails.

必填功能#

¥Required capabilities

你的 Splunk 平台账户和角色必须具有创建身份验证令牌的特定权限:

¥Your Splunk platform account and role must have certain capabilities to create authentication tokens:

  • edit_tokens_own:如果你想为自己创建令牌,则必需。

¥edit_tokens_own: Required if you want to create tokens for yourself.

  • edit_tokens_all:如果你想为实例上的任何用户创建令牌,则必需。

¥edit_tokens_all: Required if you want to create tokens for any user on the instance.

有关更多信息,请参阅 在 Splunk 平台上定义角色及其权限

¥Refer to Define roles on the Splunk platform with capabilities for more information.