Activity Feed
- Karma Re: Get the output in double quotes. for Ayn. 12-26-2024 09:48 AM
- Karma Re: Display percentage on pie charts in Splunk 6? for aelliott. 12-26-2024 07:49 AM
- Karma Re: How to search for transactions with an ordered sequence, BUT with non-specific events in the middle? for lguinn2. 02-29-2024 05:27 AM
- Karma Re: Perform stats count based on the value of a field for woodcock. 02-25-2024 04:11 AM
- Karma Re: Perform stats count based on the value of a field for javiergn. 02-25-2024 04:11 AM
- Posted Re: How can I pass dynamic values to the IN operator? on Splunk Search. 11-04-2023 05:50 AM
- Posted Re: How can I pass dynamic values to the IN operator? on Splunk Search. 11-04-2023 05:50 AM
- Karma Pass value to another search for michael_mai. 11-04-2023 05:50 AM
- Karma Re: Pass value to another search for elliotproebstel. 11-04-2023 05:50 AM
- Karma Re: How can I write a search that shows just the first N characters of each line in my logs? for richgalloway. 11-04-2023 05:49 AM
- Karma Re: How can I write a search that shows just the first N characters of each line in my logs? for erik_paulsen. 11-04-2023 05:49 AM
- Karma Re: How can I write a search that shows just the first N characters of each line in my logs? for richgalloway. 11-04-2023 05:49 AM
- Karma How can I pass dynamic values to the IN operator? for yk010123. 11-04-2023 05:49 AM
- Karma Re: How can I pass dynamic values to the IN operator? for richgalloway. 11-04-2023 05:49 AM
- Karma Re: How can I pass dynamic values to the IN operator? for ITWhisperer. 11-04-2023 05:49 AM
- Karma How can I write a search that shows just the first N characters of each line in my logs? for erik_paulsen. 11-04-2023 05:48 AM
- Posted Re: How to search the time difference between a certain event and the event prior? on Splunk Search. 10-11-2023 09:40 AM
- Tagged Re: How to search the time difference between a certain event and the event prior? on Splunk Search. 10-11-2023 09:40 AM
- Karma Re: How to search the time difference between a certain event and the event prior? for woodcock. 10-11-2023 09:39 AM
- Posted Re: Why are search results different when running a search in the Search app versus a dashboard panel? on Splunk Search. 06-10-2023 08:59 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 |
11-04-2023
05:50 AM
Another incredible answer! These helped me a lot!
... View more
11-04-2023
05:50 AM
Incredible answer!
... View more
10-11-2023
09:40 AM
@woodcock wrote: Like this: ... | reverse | streamstats current=f last(Magnitude) as prevMagnitude ... Now that each event contains the magnitude of the previous event you no longer need any correlation between events so you can tack whatever you like onto the end: ... | search magnitude > 3.3 Incredible answer! So concise and powerful!
... View more
- Tags:
- streamstats
06-10-2023
08:59 AM
Super helpful checklist, thanks! Also will include a link to this answer as base queries with non-transforming results have boundary limits. I think if you're getting inconsistent results its because you're over a limit. https://community.splunk.com/t5/Splunk-Search/Post-processing-gives-incorrect-results/m-p/522520
... View more
12-16-2022
08:11 AM
+ a million for this clever answer!
... View more
11-21-2022
08:59 AM
Thanks for this answer! It was helpful to realize that using the same output name is overwriting. I did the following as well to collapse the output fields back into one field. search | lookup mylookup.csv A OUTPUTNEW B | lookup mylookup.csv C OUTPUTNEW D | lookup mylookup.csv E OUTPUTNEW F | lookup mylookup.csv G OUTPUTNEW H | eval allInOneAgain = coalesce(B, D , F ,H) | fields - B D F H
... View more
08-19-2022
04:54 AM
Ditto! Awesome info.
... View more
08-01-2022
05:24 AM
Hi, a question from a high level of what goes on behind the scenes.
I have an internal user who has written lots of handy macros that get chained together. The dashboards leveraging the macros use a base query with panels that continue processing the base query result set. This user is hitting disk quota usage limits that other internal users do not hit.
The macros perform a series of joins and appends along the way with 4 joins not being unusual. I'm wondering if the joins perhaps create multiple copies of the left join for each of any join along the way, requiring more disk space during processing stages even if the end result is "small". The usage reported in the search does not match the sum total of the usage in the job inspection page so we are not sure what is consuming the space.
I just ran one example query of the chained macros, broken out to its query form in ad hoc search, and the end result was only 64k events that are small in size (less than 50 characters).
So I guess my question(s) is:
1. Do joins require a lot of disk space usage from the user's quota?
2. Any tips on how to debug end user issues with disk quota usage?
... View more
Labels
- Labels:
-
join
06-30-2022
08:42 PM
Thank you, you gave me a great brainstorm! Using your advice I set out to create some new fields and to manipulate them. It made me notice that for Query1 I was inadvertently fetching multiple occurrences of events matching myEvent1.common_uid_field value rather than one representative event that is sufficient. I needed to constrain Query1 further. By limiting Query1 to return only one event per common_uid_field I could now use one query for both event1 or event2 and count by common_uid_field. And only when count=2 does it mean the value is in both events. My query is now of the form: index=myindex (event1) OR (event2)
| stats values(field_in_event1) AS ImportantField count by common_uid_field
| where count=2
| stats count BY ImportantField
... View more
06-30-2022
01:36 PM
I want to run a query where:
1. Query1 returns resultset1containing myEvent1.uid
2. Query2 returns resultset2 containing myEvent2.uid which is a subset of the myEvent1uid values.
3. Filter myEvent1 events and discard any that don't have a matching myEvent2.uid.
This can be done easily with an inner join but the result2 dataset is larger than 50k so I cannot use a join.
What I want is to do an inner join without using join! 😀 (I'm also practicing not using join, in general, but I really can't use join in this case.)
Saw some other posts that use join and other tricks and tried different solutions with coalesce() and also creating a new fields but haven't figured out a way that worked.
Thanks in advance!
... View more
Labels
- Labels:
-
join
04-26-2022
02:03 PM
Outrageous trick! Very helpful, thank you! 😀
... View more
04-26-2022
06:58 AM
I needed the double quotes too which I learned from your post. Thanks!
... View more
03-31-2022
08:48 AM
Thanks for this info! 😀 I'm using outputlookup.
... View more
- Tags:
- t
03-30-2022
09:05 AM
I have a lookup file that I am generating with a query. The query results in ~59,000 rows currently.
If I run the query in the free form Splunk search then the CSV file is populated with all 59,000+ entries.
But if I schedule that query to run via a report overnight it truncates to 50,000 entries in the CSV file. What I'm trying to reconcile about the scheduled report is:
1. Under View Recent it took 29s to run so it finished in under any 60s limit: 00:00:29
2. Under View Recent it says it found 59,633 rows for a size of 8.88MB:
3. The Job also says it finished and returned 59,633 results in 28.612 seconds
I've seen a few questions around the 50k limit and stanzas that can increase it. But my questions are:
1. Nothing in the View Recent or Job warns that it has truncated the results.
2. Why does scheduling the report diff in limitations from running it in free form search?
... View more
Labels
- Labels:
-
search job inspector
02-04-2022
01:40 PM
How interesting! I will try it!
... View more
02-04-2022
11:00 AM
I recently created a Summary Index to use with some planned dashboards. To generate the Summary Index I run a report each night with Time Range set to Yesterday, "bucket _time span=day" to summarize each day into one entry, then add it to the Summary Index. Right now I wish I had more historical data in that Summary Index so I'm wondering if its OK to establish the Summary Index freshly, perhaps with a timeframe of Last 30 Days or Last 45 Days, then the next day update the report schedule to look just for Yesterday and continue on like that.
... View more
Labels
- Labels:
-
indexer
02-04-2022
10:32 AM
I have a dashboard and some queries in the panels are taking longer than the allowed 60 seconds to complete. They are using stats count but there are a lot of instances of events to count so it takes some time. I'm looking at making the queries rely on summary indexes instead in order to speed them up. But in the meantime users of the dashboard passively get inconsistent results because they aren't aware the query exited before finishing. That is, data is rendered but its not clear to the user that its incomplete data. Is there a way in a dashboard to signal to the user that a panel reached the auto-finalize limit? Right now I can click the "information" icon ("i") and see this error: "The search auto-finalized after it reached its time limit: 60 seconds." But I'd like to detect and surface it, if its possible. Thanks!
... View more
Labels
- Labels:
-
count
01-05-2022
05:51 PM
Awesome! Did not know about return.
... View more
12-14-2021
03:28 PM
Is it valid to use a where clause to compare a string value to a multivalue field in order to know if that value is one of the values in the multivalue field? For example, my query returns this result where firstName is a multivalued field: lastName | firstName
-------- -----------
Smith | Amy, Barbara, Carol
Wilson | Carol, Deanna, Emily In my query I add the following to the end of my query to find all rows containing "Carol" in the multivalue field. where firstName="Carol" The where clause seems to work fine and returns all the row containing "Carol" in the multivalue field. I'm wondering if its a supported syntax because I didn't find an example that looks like this and the various "mv" functions seemed to be for more complicated operations. In this example, I'm looking to get all last names and any associated first name and then use a where clause to return anyone with a particular first name.
... View more
Labels
- Labels:
-
field extraction
09-23-2021
06:22 AM
Such a useful list, thank you!
... View more
04-14-2020
12:09 PM
Thank you for that query. I see that it ran today but still when I click on the name I get the same "There are no results because the first scheduled run of the report has not completed."
Here is the timestamp of the last time it ran, just after midnight today:
2020-04-14 00:01:22.259
... View more
04-13-2020
01:57 PM
Hi,
(I see previous questions on this topic but haven't been able to find the answer to my issue).
I have a report that has been running successfully for some time but the owner was recently removed from Splunk.
When I visit the report URL now I get the message "There are no results because the first scheduled run of the report has not completed."
The report appears to run successfully however as this query says it was successful for status:
index=_internal sourcetype=scheduler | stats count by savedsearch_name status user
I notice that the URL to the report now has "nobody" in it and wonder if this relates to the issue. I feel like perhaps the report is running successfully but the URL to access it is incorrect?
To get the URL I use these steps:
Navigate to the app in Splunk
Click on Reports
Click on the name of the report in the Title column
The result is: There are no results because the first scheduled run of the report has not completed.
I saw documentation for reassigning owners to orphaned knowledge objects. We did change the owner for one of the reports but the result is the same.
Thank you!
... View more
Labels
- Labels:
-
scheduled search