Comments (5)
Hi @nhalstead,
We have tested SavedSearch using Postman and yes attributes do exist. Whereas in case of fetching those attributes from SDK, it is possible to fetch all the above mentioned values. Please find below code snippet for reference.
SavedSearchCollection collection = service.getSavedSearches(); // service is instance of Service class.
if (collection != null && collection.size() > 0) {
collection.keySet().forEach(key -> {
SavedSearch savedSearch = collection.get(key);
if (savedSearch != null && savedSearch.getBoolean("action.correlationsearch.enabled", false)) {
System.out.println(
"Label : " + savedSearch.get("action.correlationsearch.label")
+ ", Notable : " + savedSearch.get("action.notable")
+ ", Sec. Domain : " + savedSearch.get("action.notable.param.security_domain")
+ ", Severity : " + savedSearch.get("action.notable.param.severity")
+ ", Risk Score : " + savedSearch.get("action.risk.param._risk_score"));
}
});
}
Please check at your end and let us know, if you still face any issues.
from splunk-sdk-java.
Hi @nhalstead,
We didn't receive any update from your side. So it seems all the required attributes are fetched by referring above snippet.
We are closing this ticket.
from splunk-sdk-java.
Hi @nhalstead,
We hope you might have successfully fetched all the required attributes by referring above snippet.
Since there is no update from your side, we are closing this ticket.
from splunk-sdk-java.
Hi @bparmar-splunk, appreciate the response, finally had time to test it out.
The method getBoolean
is not exported from the package (it has no access modifier so it's only available at the package level), so I'm not able to call that method!
splunk-1.6.5.0.jar: com.splunk.Entity
from splunk-sdk-java.
There is a possible workaround since Entity::get
is public, I can duplicate the getBoolean method to run the same check.
from splunk-sdk-java.
Related Issues (20)
- Resource.java should check if AtomEntry updated value is a valid format or handle Value.toDate throwing a NumberFormatException. HOT 3
- splunk service return 404 not found - Java SDK HOT 9
- Service.login() does not work well with long-lived clients HOT 2
- ResultsReaderCsv.java throws ArrayIndexOutOfBoundsException HOT 6
- Is this abandoned?? HOT 1
- Connection Reset after some requests to splunk api HOT 3
- latest SDK failed with JDK 1.6 and JDK 1.7 , Connection reset error HOT 2
- getting java.io.IOException: Premature EOF while fetching data from splunk HOT 3
- Need a way to turn on TLS hostname verification HOT 2
- JFrog Repo Not Accessible HOT 1
- how to add custom header if we use AWS API Gateway X-API-Key validation HOT 12
- maven-deploy-plugin is included as a transitive dependency in 1.7.1 HOT 2
- Splunk Java SDk not supporting sslCertPath while writing to outputs.conf HOT 12
- SSL Certificates in truststores HOT 3
- Modular Input: Error during ValidationDefinition/InputDefinition when no value for parameter is passed HOT 11
- SSL ValidateCertificates Still Attempts to Validate When Set to False HOT 4
- The SSL verification fails even when setValidateCertificates was set to `false` HOT 3
- SSL Certificates issue: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException HOT 2
- Aggregate field values are cut off when it presents dollar symbols ($) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splunk-sdk-java.