Splunk Dev

C# SDK with predict command execution.

Jaravuy
New Member

How to execute Predict command using c# SDK.
Which version of C# SDK provides this option.

Tags (3)
0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust

All versions of the the SDK should allow you to execute the predict command so long as your executing your search in the correct app context.

For example when you're setting up your search in code you might have the search string like this:
job = await service.Jobs.CreateAsync("search index=_internal | head 10");

There's no reason you couldnt use a search with the predict command here. The only issue may be if predict command is in searching and reporting app only, and your API user doesnt have access to it, etc.

View solution in original post

0 Karma

jkat54
SplunkTrust
SplunkTrust

All versions of the the SDK should allow you to execute the predict command so long as your executing your search in the correct app context.

For example when you're setting up your search in code you might have the search string like this:
job = await service.Jobs.CreateAsync("search index=_internal | head 10");

There's no reason you couldnt use a search with the predict command here. The only issue may be if predict command is in searching and reporting app only, and your API user doesnt have access to it, etc.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...