Splunk Cloud
Ploy connects to your Splunk Cloud Platform stack with an Admin Config Service (ACS) token and reads its users and the roles they hold. It changes users and roles in Splunk only when you ask it to.
This integration is in beta
The Splunk Cloud integration is in beta. It was built from Splunk's API documentation and has not yet been run against a real Splunk Cloud stack, so the first connections are watched closely by the Ploy team. Beta does not limit what the integration can do.
The first step of setup is a consent checkbox. Ticking it lets Ploy capture redacted error data when a request to Splunk fails: the error response Splunk sends back, with names, emails, tokens and other secrets removed. Ploy uses it only to fix problems with this integration. You must tick the box to continue.
What Ploy shows
Every user on your Splunk Cloud stack, with their username, email address and full name. Users deleted in Splunk drop out.
Each role a user holds, such as user, power, sc_admin or one of your custom roles. A user can hold several roles, and each one shows on its own.
When each user last signed in to Splunk.
Users locked out after too many failed sign-ins show as Locked out. They keep their access in Ploy, because Splunk clears a lockout without removing the user.
Splunk's built-in platform accounts (index-manager, cmon_user, internal_monitoring and app-installer) show as service accounts.
Ploy does not read app permissions, indexes, HTTP Event Collector tokens or ACS tokens.
What Ploy can change
Create a user by email address. The email address is also their username, and they get the user role unless you choose another. Splunk needs a password, so Ploy sets a random one nobody knows and Splunk asks for a new one at first sign-in. Reset their password in Splunk and share it with them, or use single sign-on. If a user already has that username or email address, this counts as done.
Delete a user. Splunk does not allow its built-in accounts (admin, index-manager, cmon_user, internal_monitoring, app-installer) or users who sign in with SAML to be deleted this way. Deleting someone who is already gone counts as done.
Give or remove a role from the Splunk Cloud app's access in Ploy. Giving a role keeps every role the person already holds. Ploy will not remove someone's only role, because a Splunk user with no role can do nothing: give them another role first, or delete the user.
Change a user's role from a flow. This sets the role you choose as their only role.
Splunk has no suspended state, so Ploy cannot suspend a Splunk user. Deleting the user removes their access.
Before you start
This integration is for Splunk Cloud Platform. It does not connect to Splunk Enterprise you host yourself, or to FedRAMP stacks.
Free trial stacks cannot use Splunk's APIs, so they cannot be connected.
You need a Splunk user with the sc_admin role. Ploy acts with that user's permissions, so use an account you trust and treat the token like a password.
Create the ACS token
As a Splunk user with the sc_admin role, create an authentication token with the Admin Config Service tokens endpoint (or the ACS command line tool) for your stack.
Choose a long expiry. ACS tokens last 30 days unless you set a later date, and Ploy stops syncing when the token expires.
Create the token on your stack's default search head. A token works only on the search head it was created on.
Copy the token straight away. Splunk shows it only once.
Connect Splunk Cloud in Ploy
In Ploy, go to Integrations, find Splunk Cloud and click Connect.
Tick the beta consent checkbox.
Enter your stack name: the first part of your Splunk Cloud address. For https://acme.splunkcloud.com, enter acme. Pasting the full address works too.
Paste the ACS token.
Click Test connection. Ploy reads your user list to check the stack name and token work.
Save. The first scan starts straight away and runs every hour.
Things to know
Each Splunk Cloud stack is its own connection. To connect another stack, add another Splunk Cloud connection with a token from that stack.
Splunk limits ACS to 600 requests every 10 minutes and pauses a caller that goes over for about 5 minutes. Ploy waits and retries when it reaches the limit.
After Ploy creates a user or changes a role, Splunk can take a few minutes to apply the change across your stack.
Troubleshooting
Splunk refused that token: the token has expired, been deleted, was created for a different stack or search head, or was not copied in full. Create a new token and update the connection.
Splunk accepted the token but refused to list users: the token's user needs the sc_admin role.
Splunk is still applying an earlier change to this stack: a previous change has not finished, or failed. Wait a few minutes and try again. If it keeps failing, retry the failed deployment in Splunk.
Splunk has no role named ... on this stack: the role was renamed or deleted in Splunk. Check the role's name in Splunk and try again.