Activity Feed
- Posted Re: Dynamic lookup file on Dashboards & Visualizations. 01-24-2024 05:07 AM
- Karma Re: Dynamic lookup file for PickleRick. 01-24-2024 04:07 AM
- Karma Re: Dynamic lookup file for gcusello. 01-24-2024 04:07 AM
- Posted Dynamic lookup file on Dashboards & Visualizations. 01-23-2024 01:23 PM
- Karma Re: Check URL value for richgalloway. 01-22-2024 06:43 AM
- Posted Check URL value on Dashboards & Visualizations. 01-22-2024 06:11 AM
- Posted Dynamic | stats count on Dashboards & Visualizations. 01-10-2024 12:00 PM
- Karma Re: Drilldown with timepicker for bowesmana. 12-01-2023 06:13 AM
- Karma Re: Drilldown with timepicker for bowesmana. 12-01-2023 06:13 AM
- Posted Re: Drilldown with timepicker on Dashboards & Visualizations. 12-01-2023 06:12 AM
- Posted Re: Drilldown with timepicker on Dashboards & Visualizations. 11-30-2023 03:44 PM
- Posted Re: Drilldown with timepicker on Dashboards & Visualizations. 11-30-2023 02:07 PM
- Posted Drilldown with timepicker on Dashboards & Visualizations. 11-29-2023 04:09 PM
- Posted Classic Dashboard Single Value visual change background color to transparent on Dashboards & Visualizations. 11-28-2023 12:19 PM
- Posted Re: Stats Auto Bin Time on Dashboards & Visualizations. 11-21-2023 07:52 AM
- Posted Stats Auto Bin Time on Dashboards & Visualizations. 11-20-2023 12:15 PM
- Posted Multiple time searches on Splunk Search. 11-17-2023 10:16 AM
- Karma Re: Splunk left join not returning as expected for gcusello. 11-16-2023 04:08 AM
- Karma Re: Splunk left join not returning as expected for gcusello. 11-15-2023 02:23 PM
- Karma Re: Splunk left join not returning as expected for bowesmana. 11-15-2023 02:22 PM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 |
01-24-2024
05:07 AM
@PickleRick I'm using splunk enterprise. I wasn't sure of the best approach here, sounds like I can use events, not sure how I can go about doing this but I'll do more research.
... View more
01-23-2024
01:23 PM
I have a file that's updated every 5 minutes, it's populated my capturing a value in a URL using python code. (the value is "OK" or "bad"). I want to use the new file (that created every 5 minutes) in a splunk classic dashboard. I'm using the splunk cloud enterprise, and I'm not sure how to go about automating this process. Is there a way to update/replace a file in the lookup table files? Or some other way I can go about adding in the new file after every refresh to the dashboard?
... View more
Labels
- Labels:
-
Classic dashboard
01-22-2024
06:11 AM
I am working in Classic dashboard. I have a gateway address (URL: abc23.com ) I want to check this value after every dashboard refresh. Either display the results of the URL and/or single value visual with green and red colors. Green is for when the URL status is set to "OK", else is "Red". Any ideas on how I can accomplish this task? I created a python scrip that extracts the value into a log and then the dashboard checks the log but this doesn't seem like the best approach and not really what I want.
... View more
Labels
- Labels:
-
Classic dashboard
01-10-2024
12:00 PM
I'm not exactly sure what I need here. I have a multiselect: <input type="multiselect" token="t_resource">
<label>Resource</label>
<choice value="*">All</choice>
<prefix>IN(</prefix>
<suffix>)</suffix>
<delimiter>,</delimiter>
<fieldForLabel>resource</fieldForLabel>
<fieldForValue>resource</fieldForValue>
<search base="base_search">
<query>| dedup resource | table resource</query> Table visual search: | search status_code $t_code$ resource $t_resource$ HourBucket = $t_hour$
| bin _time span=1h
| stats count(status_code) as StatusCodeCount by _time, status_code, resource
| eventstats sum(StatusCodeCount) as TotalCount by _time, resource
| eval PercentageTotalCount = round((StatusCodeCount / TotalCount) * 100, 2)
| eval 200Flag = case(
status_code=200 AND PercentageTotalCount < 89, "Red",
status_code=200 AND PercentageTotalCount < 94, "Yellow",
status_code=200 AND PercentageTotalCount <= 100, "Green",
1=1, null)
| eval HourBucket = strftime(_time, "%H")
| table _time, HourBucket, resource, status_code, StatusCodeCount, PercentageTotalCount, 200Flag I also have a table, sample data below: _time resource 1/10/2024 Red 1/10/2024 Green When the user select the multiselect dropdown and selects "ALL" (which is the default) the resource column should aggregate all the resource and display the resource as "All". But If the user select individual resources, such as "Red" and "Green" these should be shown and broken down by resource.
... View more
Labels
- Labels:
-
Classic dashboard
-
table
12-01-2023
06:12 AM
@bowesmana Great, that works. This is what I have done. Parameters for dashboard A earliest = $form.t_time.earliest$ latest = $form.t_time.latest$ Then on dashboard B my timepicker should refer to dashboard A tokens, see below. (leaving out the token name). Now you can adjust your default accordingly, if you want the default to be your token then use $earliest$ $latest$ . But by setting your default to 15 minutes when you directly go to dashboard B you will not receive an error of missing earliest. <input type="time">
<label></label>
<default>
<earliest>-15m</earliest>
<latest>now</latest>
</default>
</input>
... View more
11-30-2023
03:44 PM
@bowesmana When I click on the URL these parameters are being passed: ?earliest=1701381000&latest=1701384619 But when I add a new timepicker in the drill-down and set a default the URL becomes: ?earliest=1701381000&latest=1701384619&form.t_time.earliest=-15m&form.t_time.latest=now Drill-down timepicker token _time default "last 15 minutes" This is appended to the bottom of my spl (outside of the query tags) <earliest>$t_time.earliest$</earliest> <latest>$t_time.latest$</latest> My timepicker XML looks like this: <input type="time" token="t_time"> <label></label> <default> <earliest>-15m</earliest> <latest>now</latest> </default> </input>
... View more
11-30-2023
02:07 PM
@bowesmana Appreciated the response. I'm "linking to dashboard" when I create the parameter I'm using earliest = $earliest$ and latest = $latest$ and seems to be passing to the url fine via the drill-down dashboard. What is annoying it when I go directly into the drill-down dashboard, the timepicker defaults to "All Time". My question is how can this be avoided? When I create the timepicker in the drilldown and set a default the "link to dashboard" parameters no longer work.
... View more
11-29-2023
04:09 PM
I have a drilldown into another dashboard with parameters earliest=$earliest$ and latest=$latest$, this works. When I go into the drilldown dashboard directly it sets the data to come back as "all time". Is there a way that I can have multiple defaults or some other constrain that doesn't cause this? Here's what I've been working on but it's not working. Any feedback would be helpful... <input type="time" token="t_time">
<default>
<earliest>if(isnull($url.earliest$), "-15m@m", $url.earliest$)</earliest>
<latest>if(isnull($url.latest$), "now", $url.latest$)</latest>
</default>
</input>
... View more
11-28-2023
12:19 PM
Hello, can someone provide feedback on how I can change the color of my panel to transparent? Below is my code snippet. I'm not great with CSS or XML. I was using dashboard studio which was straight forward on how to change but I'm back with classic for now. <panel>
<single>
<title>Total First Time</title>
<search base="base_search">
<query>|search Cur= $t_cur$ | bin _time span=$t_bin$ | stats sum(FirstTime) as sumFirstTime by Category</query>
</search>
<option name="drilldown">none</option>
<option name="rangeColors">["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]</option>
<option name="refresh.display">progressbar</option>
</single>
</panel>
... View more
Labels
- Labels:
-
CSS
-
panel
-
simple XML
11-21-2023
07:52 AM
This is what worked for me. I added a TimeBucket dropdown box and created a token. | search cat IN ($t_endpoint$) AND Car IN ($t_car$)
|bin _time span=$t_bin$
| stats limit=15 sum(Numbercat) as Numbercat, avg(catTime) as AvgcatSecs by _time, Car, cat
| eval Time=strftime(_time,"%Y-%m-%d-%I:%M %p")
|fields - _time
|fields Time, Numbercat
... View more
11-20-2023
12:15 PM
I have created a dashboard in dashboard studio. I have a table visualization, see my code below. So, the "Time" column auto sets my | bin to one minute. When I update my timepicker to say the last 7 days it still shows the time |bin as one minute. How can I dynamically change the |bin to best fit my timepicker selection? | search cat IN ($t_endpoint$) AND Car IN ($t_car$)
| eval Time=strftime(_time,"%Y-%m-%d-%I:%M %p")
| stats limit=15 sum(Numbercat) as Numbercat, avg(catTime) as AvgcatSecs by Time, Car, cat
... View more
Labels
- Labels:
-
chart
-
Dashboard Studio
-
table
11-17-2023
10:16 AM
I have the below search and I'm trying to search for different time periods within each search. So for example msg="*Completed *" is using the timepicker input. I would like to search for data one hour before the timepicker search (so this should be dynamic) for msg="*First *" I'm not sure if this is possible. I'm comparing these two searches and the initial log msg="*First*" can occur several minutes before the msg=*Completed*" log. So when I compare some of these log messages get cut off depending on when I select my timepicker. I would like to search for these message 1 hour before my timepicker selection. Long term this search will go into a splunk dashboard. (index=color name IN ("green","blue") msg="*First *" ```earliest="11/09/2023:09:00:00" latest="11/09/2023:12:59:59"```)
OR
(index=color name IN ("blue2","green2") msg="*Completed *")
... View more
Labels
- Labels:
-
subsearch
11-15-2023
10:19 AM
Hello @gcusello I managed to not use the join command, the above feedback helped. I decided to go with Union this seems to be working, what do you think? index=customer ((name IN (gate-green, gate-blue) msg="*First time: *")
| rex field=msg "First time: (?<UserId>\d+)"
| eval FirtRequest = 1
|union
[ search index name IN (cust-blue, cust-green) msg="*COMPLETED *")
| rex field=msg "Message\|[^\t\{]*(?<json>{[^\t]+})"
| spath input=json path=infoId output=UserId
| eval Completed = 1]
| stats max(FirstRequest) AS FirstRequest max(Completed) BY UserId
... View more
11-15-2023
06:16 AM
I have the below code. I know that values exist under the subsearch which are not returning when I run the below query. However, when I uncomment the "where clause" in the sub search the values appear. I don't know what I have done incorrectly for my results to not show. I've also commented out the |search and it still doesn't show that these values exist in the subsearch. Any help would be appreciated. index=customer name IN (gate-green, gate-blue) msg="*First time: *"
| rex field=msg "First time: (?<UserId>\d+)"
| eval FirstRequest = 1
| join type=left UserId
[search index=customer name IN (cust-blue, cust-green) msg="*COMPLETED *"
| rex field=msg "Message\|[^\t\{]*(?<json>{[^\t]+})"
| spath input=json path=infoId output=UserId
| eval Completed = 1
```| where UserId IN (125,999,418,208)```]
| table UserId, Completed
| search UserId IN (125,999,418,208)
... View more
11-06-2023
08:29 AM
It's derived through the | eval | eval CareCnts=spath(json, "Info.Care.Redcount")
| eval CoverCnts=spath(json, "Info.Cover.Redcount")
| eval NonCoverCnts=spath(json, "Info.NonCover.Redcount")
... View more
11-06-2023
07:56 AM
Hello, I have the below code. I'm trying to create a new column that extracts and pivots CareCnts, CoverCnts, NonCoverCnts, etc... (There are more but I have simplified). These |eval are related to their corresponding `| evals`. New Columns = ResourceCounts How would one accomplish this? index=red msg="*COMPLETED Red*"
| spath output=logMessage path=msg
| eval Care=spath(json, "Info.Care.elapsedTime")
| eval CareCnts=spath(json, "Info.Care.Redcount")
| eval Cover=spath(json, "Info.Cover.elapsedTime")
| eval CoverCnts=spath(json, "Info.Cover.Redcount")
| eval NonCover=spath(json, "Info.NonCover.elapsedTime")
| eval NonCoverCnts=spath(json, "Info.NonCover.Redcount")
| eval Category = "Red"
| table _time, Care, Cover, NonCover, Category
| eval SysTime = Category + ":" + _time
| fields - Category
| untable SysTime Resource CurValue
| eval Category = mvindex(split(SysTime, ":"), 0)
| eval _time = mvindex(split(SysTime, ":"), 1)
| fields - SysTime
| table _time, Resource, CurValue, Category Example output: _time Resource CurValue Category *NewColumn 2023-11-06 Care 14.20 Red 10 2023-11-06 Cover 3.4 Red 3 2023-11-06 NonCover 5.5 Red 8
... View more
Labels
- Labels:
-
eval
-
field extraction
10-25-2023
04:58 AM
I have my base search and Pat, Con and Cov are individual columns. I want those to be the values for my multi-value select. So in my mulit-value select I un-table those columns into rows with the column being Reason. | table _time, Pat, Con, Cov, Category
... View more
10-24-2023
11:50 AM
I have a multiselect that does not interact with my Trellis chart. I would say; it's not defined in my base search but not sure how to identify the issue and how to fix? BASE Search: | eval Pat=spath(json, "Info.Pat.Time")
| eval Con=spath(json, "Info.Con.Time")
| eval Cov=spath(json, "Info.Cov.Time")
| eval Category = RED
| table _time, Pat, Con, Cov, Category Mulit-Select: | eval SysTime = Category + ":" + _time
| fields - Category
| untable SysTime Reason CurationValue
| eval Category = mvindex(split(SysTime, ":"), 0)
| eval _time = mvindex(split(SysTime, ":"), 1)
| fields - SysTime
| table Reason
| dedup Reason Chart: | search Category $t_category$ Reason $t_reason$
| timechart span=1h avg(Pat) as Pat, avg(Con) as Con, avg(Cov) as Cov
... View more
10-24-2023
05:46 AM
I have the below Trellis, is there a way to change the color for each Trellis? My code from Classic Dashboard. search Cu $t_c$ En $t_e$
| timechart span=1h avg(Value) as AvgValue_Secs by Category I want something like this:
... View more
Labels
- Labels:
-
timechart
-
trellis layout
10-19-2023
01:18 PM
Hello, I'm working in splunk enterprise 8.2.4 I have the below search index=Red msg="*COMPLETED Task*”
| spath output=logMessage path=msg
| rex field=logMessage "Message\|[^\t\{]*(?<json>{[^\t]+})"
| eval PP_elapsedTime=spath(json, “PPInfo.PP.elapsedTime")
| eval CC_elapsedTime=spath(json, “CCInfo.CC.elapsedTime")
| eval System = “Member”
| table System, PP_elapsedTime, CC_elapsedTime Current output: System _time PP_elapsed_Time CC_elapsed_Time Member 2023-09-10 1.52 4 Member 2023-09-11 2 2.6 I want the output to read: System _time Reason Value Member 2023-09-10 PP_elapsed_Time 1.52 Member 2023-09-10 CC_elapsed_Time 4 Member 2023-09-11 PP_elapsed_Time 2 Member 2023-09-11 CC_elapsed_Time 2.6 I'm not sure where to go from here, any feedback would be appreciated.
... View more