Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Create an object(a saved search) in a namespace
private static void namespaceCreateEntityExample() {
Service splunkService = connectAndLoginToSplunkExample();
ServiceArgs namespace = new ServiceArgs();
SavedSearchCollection savedSearches = splunkService.getSavedSearches(namespace);
String searchName = "My namespaced search";
String search = "index=main * | head 10";
savedSearches.create(searchName, search);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.