Activity Feed
- Got Karma for Re: How to Run a search using searchmanager (from javascript) when browser/tab closes?. 11-11-2021 11:56 PM
- Got Karma for Re: How to I monitor a dropdown input for changes using Javascript?. 07-13-2021 08:20 AM
- Got Karma for Re: Set token on submit button click?. 05-12-2021 02:54 AM
- Got Karma for Re: How to I monitor a dropdown input for changes using Javascript?. 03-25-2021 02:35 AM
- Got Karma for Re: How to create time dependent thresholds from lookup?. 11-17-2020 07:19 AM
- Karma Using multiple time range on the same index to return different row values for egonstep. 06-05-2020 12:51 AM
- Karma Re: Data Model acceleration not working for 1 out of 5 event datasets for MaverickT. 06-05-2020 12:51 AM
- Got Karma for Data Model acceleration not working for 1 out of 5 event datasets. 06-05-2020 12:51 AM
- Got Karma for Re: Alert condition considering previous itirations. 06-05-2020 12:51 AM
- Got Karma for Re: Using multiple time range on the same index to return different row values. 06-05-2020 12:51 AM
- Karma Re: Delete button for KV store wont work for niketn. 06-05-2020 12:50 AM
- Karma Re: Delete button for KV store wont work for niketn. 06-05-2020 12:50 AM
- Karma Re: Machine Learning K-Means Clustering Label Question for johannthum. 06-05-2020 12:50 AM
- Karma Re: Conditional Dropdown based on date for paramagurukarth. 06-05-2020 12:50 AM
- Karma Re: How to preserve leading whitespace in a statistcs table? for vnravikumar. 06-05-2020 12:50 AM
- Karma Re: How can I test if I am overfitting? for Sukisen1981. 06-05-2020 12:50 AM
- Karma Re: How to add icons in splunk table without js for chrisyounger. 06-05-2020 12:50 AM
- Karma Re: Set token on submit button click? for nick405060. 06-05-2020 12:50 AM
- Karma Re: What is the proper way for listening SearchManager results in JavaScript for jeffland. 06-05-2020 12:50 AM
- Karma Re: How do you edit a custom message in a 404 page of Splunk for a particular app only? for paramagurukarth. 06-05-2020 12:50 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
1 | |||
0 | |||
0 | |||
0 | |||
0 | |||
1 |
07-09-2019
10:07 PM
Hi @rosho,
Maybe this explanation here might help:
Forecasting would be a subset of prediction. Any time you predict into the future it is a forecast. All forecasts are predictions, but not all predictions are forecasts, as when you would use regression to explain the relationship between two variables.
https://stats.stackexchange.com/questions/65287/difference-between-forecast-and-prediction
Hope this clears your confusion,
Harsh
... View more
06-28-2019
01:58 AM
1 Karma
Have you tried?
|tstats summariesonly=true count from datamodel=Authentication by _time,Authentication.tag,Authentication.user span=60m
... View more
06-24-2019
10:58 PM
Hi @is91,
If you could provide the screenshot with search it would be helpful.
... View more
06-24-2019
05:36 AM
Hi @sajithpm101,
You can provide the earliest and latest time in the SearchManager object itself.
Like:
var searchFunctionalAreas = new SearchManager({
id: "functional-areas",
earliest_time: startdate_in_epochs,
latest_time: enddate_in_epochs,
preview: true,
cache: false,
search: 'your search here...'
});
Tell me if I am missing something.
... View more
06-24-2019
05:28 AM
Cheers 🙂
Harsh
... View more
06-24-2019
05:24 AM
1 Karma
Hi @pgadhari,
You can use mvsort eval function like:
| eval Rack=mvsort(Rack)
... View more
06-24-2019
03:31 AM
3 Karma
Hi @andrewtrobec,
You can listen on the token change event to know if dropdown value changed.
To listen the change:
require([
"splunkjs/mvc",
"splunkjs/mvc/simplexml/ready!"
], function (mvc) {
// get default token model
var tokens = mvc.Components.getInstance("default");
tokens.on("change:tok_input", function(model, value) {
console.log("Dropdown value changed: " + String(value));
});
});
Reference: http://dev.splunk.com/view/webframework-developapps/SP-CAAAEW4
... View more
06-19-2019
12:10 AM
Yes, It will help to make sure all searches are finished.
... View more
06-18-2019
10:39 PM
1 Karma
Hi @denzelchung,
I think what you should do instead is have a separate token for each search.
For understanding:
Let's say search1 sets token1 to true when it is done executing so and so for search2 and search3 . And also after setting these tokens on search:done you also check for a condition that will set your token done if and only if each token for each search is set. The condition can be like if token1=true and token2=true and token3=true then set token done .
This condition should be there for each search so whichever search is executed last will have this condition satisfy to true and will set your token done .
For your reference: https://docs.splunk.com/Documentation/Splunk/7.3.0/Viz/PanelreferenceforSimplifiedXML#condition_.28form_input.29
Cheers,
Harsh
... View more
06-18-2019
04:30 AM
Have you tried EVAL in props.conf? For example: EVAL-fieldname = field1 + field2
... View more
06-18-2019
03:13 AM
Hi @sachinbansal,
You don't have to create different dashboards. You can show panels based on tokens set like the following:
<panel depends="$token1$">
your panel xml here...
</panel>
... View more
06-18-2019
03:06 AM
Hi @afx is the string "User hugo has logged in from 10.1.1.1" except hugo and 10.1.1.1 static?
... View more
06-18-2019
02:43 AM
Hi @rashid47010 ,
Please check this: https://regex101.com/r/l5xt9s/1
Splunk query:
| makeresults count=1
| eval _raw="Axxtalled=xrxnx xx Client\;12.0.5294\;15.179.00\;3x/x/2xx\;,"
| rex field=_raw "\\\\;(?<myfield>[\d.]+)\\\\;"
... View more
06-13-2019
06:52 AM
Hi everyone,
I was trying to get radio buttons in an app's setup page. And I thought that maybe list would be ok as stated in the documentation.
Quoting doc:
list: Displays values from a comma-separated list, allowing the user to select a single value.
From this, we can tell that it must be shown as a dropdown when the setup page is loaded. But I tried to populate it using a comma separated string but that didn't work and it was rendered as text input.
There's also no explanation in the documentation on how to populate it and now I don't know if it even works or not. Also want to reference the same question from 2013 here: link
Hoping to get an answer here.
Thanks,
Harsh
... View more
06-11-2019
10:54 PM
1 Karma
Hi @nick405060 ,
Can you try this and tell me if this is what you are trying to get. I think your on click event handler is getting called every time but you are setting the value to true in each case which is not toggling the token value.
require([
"jquery",
"splunkjs/mvc",
"splunkjs/mvc/simplexml/ready!"
], function ($, mvc) {
// get default token model
var tokens = mvc.Components.get("default");
// set default value for token
tokens.set("clicked", "false");
$("#btn-submit").on("click", function () {
console.log("changing token value from " + tokens.get("clicked") + " to " + (tokens.get("clicked")=="true" ? "false" : "true"));
// toggle token value
tokens.set("clicked", tokens.get("clicked")=="true" ? "false" : "true");
});
});
... View more
06-11-2019
09:59 PM
@dowdag
Please try this:
https://answers.splunk.com/answers/751096/convert-timestamp-from-one-format-to-unix-style-fo.html?childToView=751844#answer-751844
... View more
06-11-2019
09:58 PM
Hi @dowdag,
You are defining wrong format for DateTimeStr when converting it into epoch time. Please try this:
| eval uxTimeStamp=strftime(strptime(DateTimeStr, "%Y-%m-%d %H:%M:%S.%6N"), "%Y-%m-%d %H:%M:%S:%3N")
See how your DateTimeStr value is 2019-06-06 11:10:04.307625 and as per your format in strptime i.e. %Y-%m-%d %H:%M:%S:%3N means you are expecting DateTimeStr to be 2019-06-06 11:10:04:307 which will result in uxTimeStamp being NULL value.
Cheers,
Harsh
... View more
06-11-2019
05:11 AM
Hi @dowdag, Are you trying to achieve this using props.conf or you want to do this using a Splunk search?
What I can tell is you are already extracting timestamp using props.conf and you want to add a year to it?
... View more
06-11-2019
04:37 AM
Hi @snigdhasaxena,
You have to set timerange to be the token in the panel's options.
Click on the edit search button at top right of the panel
Under timerange select your shared token timerange
... View more
06-10-2019
02:48 AM
1 Karma
Hi @AshimaE,
try this on your data (please ignore till | eval _raw="[{\"name\":\"planning\",\"confidence\":0.98},{\"name\":\"sales\",\"confidence\":0.12}]" ) :
| makeresults count=1
| eval _raw="[{\"name\":\"planning\",\"confidence\":0.98},{\"name\":\"sales\",\"confidence\":0.12}]"
| spath
| eval all_fields=mvzip('{}.name', '{}.confidence', ",")
| fields all_fields
| mvexpand all_fields
| makemv delim="," all_fields
| eval name=mvindex(all_fields, 0)
| eval confidence=mvindex(all_fields, 1)
| table name, confidence
This will process your JSON array to table in Splunk which will be easy to process later on. If you have all of your events in one single event as JSON array then I would recommend splitting it into one single JSON object and ingest. Because parsing at search will reduce the performance of your search.
Hope this helps 🙂
... View more
06-07-2019
11:22 PM
@jip31 isn't $tok_health$ supposed to filter another field? You are filtering the same field again which is filtered by $tok_cycle$ so in some cases, the conflict will occur. If you want to filter the same field with tokens then why not have only one token combined of two?
... View more
06-06-2019
04:59 AM
1 Karma
@le_barbucheron Try this 🙂
Cheers,
Harsh
... View more
06-06-2019
04:40 AM
So theres two possibilities in your data?
It can be 0 4 0 0 0 0 0 0 8 0 0 0 0 0 0 0 2 D8 B0
OR 0 44 0 0 0 0 0 8 0 0 0 0 0 0 0 2 D8 B0
Am I right?
... View more