Activity Feed
- Karma Re: How to hide the dropdown input panel ? for martin_mueller. 06-05-2020 12:48 AM
- Karma Re: Is there any tool to automatically format a Splunk search to make it readable? for woodcock. 06-05-2020 12:48 AM
- Karma How to resolve Unable to initialize modular input "server" defined inside the app "splunk_app_db_connect" for teddyidc1101. 06-05-2020 12:48 AM
- Karma Unable to initialize modular input "server" defined inside the app "splunk_app_db_connect": Introspecting scheme=server: script running failed (exited with code 1). for sivaksk147. 06-05-2020 12:48 AM
- Got Karma for Re: How to add keepevicted=true in the datamodel or the query which uses datamodel (Data model has a transaction)?. 06-05-2020 12:48 AM
- Got Karma for Re: How to hide the dropdown input panel ?. 06-05-2020 12:48 AM
- Got Karma for How to search based on a time field that is not _time?. 06-05-2020 12:48 AM
- Got Karma for How to search based on a time field that is not _time?. 06-05-2020 12:48 AM
- Got Karma for How to search based on a time field that is not _time?. 06-05-2020 12:48 AM
- Posted How to have a drop down to the embedded report? on Dashboards & Visualizations. 02-08-2018 09:37 AM
- Posted Re: Is there a way to only get the response with "isDone" using the REST endpoint "search/jobs/{search_id}:"? on Getting Data In. 11-08-2017 02:09 PM
- Posted Is there a way to only get the response with "isDone" using the REST endpoint "search/jobs/{search_id}:"? on Getting Data In. 11-08-2017 12:39 PM
- Tagged Is there a way to only get the response with "isDone" using the REST endpoint "search/jobs/{search_id}:"? on Getting Data In. 11-08-2017 12:39 PM
- Tagged Is there a way to only get the response with "isDone" using the REST endpoint "search/jobs/{search_id}:"? on Getting Data In. 11-08-2017 12:39 PM
- Posted Re: How to run two different searches in a dashboard based on the selected time range? on Splunk Search. 01-09-2017 03:02 PM
- Posted How to run two different searches in a dashboard based on the selected time range? on Splunk Search. 01-09-2017 09:48 AM
- Tagged How to run two different searches in a dashboard based on the selected time range? on Splunk Search. 01-09-2017 09:48 AM
- Tagged How to run two different searches in a dashboard based on the selected time range? on Splunk Search. 01-09-2017 09:48 AM
- Tagged How to run two different searches in a dashboard based on the selected time range? on Splunk Search. 01-09-2017 09:48 AM
- Posted Re: How to add keepevicted=true in the datamodel or the query which uses datamodel (Data model has a transaction)? on Splunk Search. 11-02-2016 12:34 PM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 |
02-08-2018
09:37 AM
HI, Can there be a drop down to the embedded report? Once the report is put on the iframe , the user should be able to update the dropdown, and results are changed based on the selections (no new search is needed but just the results should be updated)
Thanks.
... View more
11-08-2017
02:09 PM
Thanks for the reply cmerriman. We are calling the endpoint from the Java based app and is there any way to get only isDone instead of the whole payload?
... View more
01-09-2017
03:02 PM
Sure, I'll try this and update you. Thanks.
... View more
11-02-2016
10:38 AM
HI Lucas, I'm not using any tstats command, we are only using datamodel command.
| datamodel
Thanks.
... View more
11-02-2016
12:34 PM
1 Karma
Hi, I've opened the datamodel via UI. I don't see transaction xxx , to add keepevicted=true. Can you elaborate where to add the keepevicted ?
Thanks
... View more
08-31-2016
11:33 AM
That makes sense. Thanks for your time sundareshr .
... View more
07-12-2016
04:28 PM
That makes sense. That's what I need . The app is really helpful. Thanks for your time Luke,....
... View more
06-08-2017
11:59 PM
1 Karma
Feel free to ask a new question about that, and make sure you include the dashboard xml that doesn't do what you expect. At some point we're just spamming an older question, veering further away from the original issue.
... View more
01-25-2017
03:45 AM
Check the answer by veganjay here: https://answers.splunk.com/answers/129773/advice-for-when-you-have-more-than-100-automatically-extracted-fields.html
It worked for me.
... View more
04-29-2016
09:49 AM
Thank you. I'll try this.
... View more
10-30-2017
04:12 AM
It works if add "args." before argument name. For example the saved search (with the name "findSurname") is:
host=my_host field1=$args.surname$
then you can do:
SavedSearch savedSearch = splunkService.getSavedSearches().get("findSurname"); //get your saved search by name
SavedSearchDispatchArgs dispatchArgs = new SavedSearchDispatchArgs();
dispatchArgs.add("args.surname", "IVAN*");
Job job = savedSearch.dispatch(dispatchArgs);
while(!job.isDone()){
try {
Thread.sleep(500);
} catch (InterruptedException ex) {
System.out.println("Waiting thread was interrupted: " + ex.toString());
}
}
try{
Args outputArgs = new Args();
outputArgs.put("output_mode","json");
InputStream inputStream = job.getEvents(outputArgs);
byte[] buffer = new byte[4096];
while(inputStream.read(buffer)!=-1){
System.out.println(new String(buffer));
}
}catch(Exception ex){
System.out.println("Error getting result from Splunk: " + ex.toString());
}
Also you can see some examples about saved searches with Splunk SDK here: http://dev.splunk.com/view/java-sdk/SP-CAAAEKY
... View more
04-19-2016
12:59 PM
Perfect , This worked. It created a new column - "fieldnames" with the original column name. I could just search the new column which has no nulls.
Thanks for your time Javiergn.
... View more
04-14-2016
03:11 PM
3 Karma
Additionally, move as much filtering as you can into search before the first pipe.
(Exception: Report Acceleration / Postprocessing / etc. scenarios where you pre-compute a data cube style thingy and feed many things off it, here filtering late can make sense)
... View more
05-03-2019
03:34 AM
Hi, I think this solution needs one enhancement:
In the case if latest time is now it passes "now" which in relative_time() functions gives empty result so it can be fixed by adding if("$time.latest$"="now", "-0","$time.latest$" ) condition as follows:
index=foo sourcetype=bar earliest=0 | where strptime(abctime, "%Y-%m-%d") >=if(replace("$time.earliest$","\d","")!="",relative_time(now(),"$time.earliest$"),"$time.earliest$") AND strptime(abctime, "%Y-%m-%d") <if(replace("$time.latest$","\d","")!="",relative_time(now(),if("$time.latest$"="now", "-0","$time.latest$" ),"$time.latest$")
... View more
03-14-2016
10:11 AM
Yes, Perfect. Thanks Maciep 🙂
... View more
02-16-2016
12:25 PM
I've date_hour and date_wday fields. Thanks for your time.
... View more
01-29-2016
09:14 AM
Perfect! It worked . Thanks for your time 🙂
... View more
01-20-2016
11:51 AM
1 Karma
If your payload_json is pretty static, you could create calculated fields using spath(payload_json, "requestId") (for example) as the eval expression. It would still execute at search time, though. There probably is a way to write a generic EXTRACT/TRANSFORM as well to dynamically get the fields extracted from the payload_json field you already have.
... View more
01-18-2016
01:49 PM
Thanks Javiergn. That worked 🙂
... View more