Activity Feed
- Karma Re: Looking at timestamps over 1 year old for woodcock. 06-05-2020 12:47 AM
- Got Karma for Adding a Field from a Subsearch Using Join - Inaccurate Results. 06-05-2020 12:47 AM
- Got Karma for Dashboard Panel Showing Different Results from Report. 06-05-2020 12:47 AM
- Got Karma for Dashboard Panel Showing Different Results from Report. 06-05-2020 12:47 AM
- Karma Timechart limit 1000 results per series, can I increase this? for paddygriffin. 06-05-2020 12:46 AM
- Posted Re: Dashboard Panel Showing Different Results from Report on Reporting. 07-06-2015 12:39 PM
- Posted Re: Dashboard Panel Showing Different Results from Report on Reporting. 07-06-2015 09:28 AM
- Posted Re: Dashboard Panel Showing Different Results from Report on Reporting. 07-06-2015 09:01 AM
- Posted Re: Dashboard Panel Showing Different Results from Report on Reporting. 07-06-2015 08:08 AM
- Posted Dashboard Panel Showing Different Results from Report on Reporting. 07-02-2015 07:52 AM
- Tagged Dashboard Panel Showing Different Results from Report on Reporting. 07-02-2015 07:52 AM
- Tagged Dashboard Panel Showing Different Results from Report on Reporting. 07-02-2015 07:52 AM
- Tagged Dashboard Panel Showing Different Results from Report on Reporting. 07-02-2015 07:52 AM
- Tagged Dashboard Panel Showing Different Results from Report on Reporting. 07-02-2015 07:52 AM
- Tagged Dashboard Panel Showing Different Results from Report on Reporting. 07-02-2015 07:52 AM
- Posted Re: Adding a Field from a Subsearch Using Join - Inaccurate Results on Splunk Search. 06-30-2015 12:31 PM
- Posted Nested "Where" Commands - Error: The expression is malformed on Splunk Search. 06-25-2015 11:52 AM
- Tagged Nested "Where" Commands - Error: The expression is malformed on Splunk Search. 06-25-2015 11:52 AM
- Tagged Nested "Where" Commands - Error: The expression is malformed on Splunk Search. 06-25-2015 11:52 AM
- Tagged Nested "Where" Commands - Error: The expression is malformed on Splunk Search. 06-25-2015 11:52 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
2 | |||
0 | |||
1 | |||
0 | |||
0 |
07-06-2015
12:39 PM
I opened the search twice in the job inspector (once from the report, and once from the dashboard panel) and I found some discrepancies in the "Execution cost" section.
Report (correct results):
Component | Invocations | Input count | Output count
command.dedup | 1 | 1,300,000 | 2,442
command.eval | 2 | 3,694 | 3,694
command.prededup | 29 | 165,081 | 9,565
command.where | 2 | 4,289 | 2,294
Dashboard Panel (incorrect results):
Component | Invocations | Input count | Output count
command.dedup | 1 | 2,350,000 | 2,442
command.eval | 2 | 4,312 | 4,312
command.prededup | 52 | 165,081 | 21,389
command.where | 2 | 4,598 | 2,813
... View more
07-06-2015
09:28 AM
Ok, here is the full search:
activity_type=40 direct_object_type=102 | dedup direct_dw_object_id sortby -activity_ts | where ![search deleted_ts object_type=102 | fields object_id] | eval last_modified_epoch=activity_ts | eval modAgeSeconds = ((now() - last_modified_epoch)/31536000) | where modAgeSeconds > 1 | stats count as Total
The hidden parts were a subsearch and some eval arithmetic. I don't see how the evals would cause inconsistencies, but perhaps the subsearch is failing in the dashboard? I'm not sure how/why that would happen.
... View more
07-06-2015
09:01 AM
I only have one index, and all the events in that index have the same sourcetype. Adding those statements did nothing. I do not think this is simply a syntactical issue, it seems that the search in the dashboard panel is being conducted differently from the search in the report or the standalone search.
Thanks for your help so far, though. This issue is pretty pesky.
... View more
07-06-2015
08:08 AM
I still get the same result. Like I said, I don't think it has to to with time , but I still have no idea what else would be causing this. Any suggestions on what I can do to figure out what's going wrong?
... View more
07-02-2015
07:52 AM
2 Karma
I'm trying to save the following search as a single value dashboard panel (from a report):
activity_type=40 direct_object_type=102 | dedup direct_dw_object_id sortby -activity_ts | where ![...] | ... | stats distinct_count(object_id)
When I run this in search or as a report I get what I believe to be an accurate result (446). However, when I try to convert it from a report to a dashboard panel it returns 81, which I'm sure is incorrect. The time range for all three of these formats (search, report, and dashboard panel) is set to All time, so I don't think it has anything to do with that.
Any idea what could be causing this?
... View more
06-30-2015
12:31 PM
Hey, that looks like it could work. However, both questions and responses have the activity_ts field. How would you suggest I shuffle things around to account for this? Just for some clarification, I want to find the earliest activity_ts out of the response events, and use those results populate the first_comment_ts field in the question events. I've tried to tinker with it but my solutions just seem overly convoluted.
Sorry for the late response. Thank you so much for your help so far.
... View more
06-25-2015
11:52 AM
I'm trying to filter the results of a search based on the results of a (pretty complex) subsearch using the where command.
Here is what my search looks like right now (spacing and line breaks added for clarity):
... | where [search ... |
where [search ... | fields title] AND ![search ... | fields object_id] AND ![search ... | fields object_id]
| fields title] |
...
When I run this, I keep getting the following error:
Error in 'where' command: The expression is malformed. An unexpected character is reached at ')'.
When I run the contents of the first (outermost) where command, like this:
... | where [search ... | fields title] AND ![search ... | fields object_id] AND ![search ... | fields object_id] | fields title
Everything runs perfectly fine, and I get the results I expect.
Is something wrong with my syntax? Is there a problem with having too many nested where commands? title is a field in the main search, so I assumed I could just use where to filter out all titles that weren't found by my subsearch (i.e. where title="title1" OR title="title2"...).
The error seems to be occurring at the very end of the outermost where , because when I add extraneous characters (like "asdf") to the end of the entire search I get this:
Error in 'where' command: The expression is malformed. An unexpected character is reached at ') asdf'.
Sorry if this isn't enough information to help. I can say that this search was working perfectly about a week ago, but when I re-indexed the data to account for new information, it started giving me this error. I've broken down the search into each individual subsearch and everything works fine, but when I try to put it all together into one big search it just won't work.
Any help would be greatly appreciated
... View more
06-25-2015
11:07 AM
The events in both the main search and the subsearch have the same sourcetype.
... View more
06-25-2015
11:02 AM
Yeah, I still get the same results.
... View more
06-25-2015
09:24 AM
1 Karma
I'm trying to add a field to my main search based on the values retrieved from a subsearch. More specifically, my main search finds all questions posted on my company's community website, and the subsearch finds all responses to questions. I'm trying to match each question (found from the main search) with its first response (found by sorting the responses by time and dedup'ing the subsearch based on a thread ID). However, this doesn't seem to be working properly. Here is my search:
... | join thread_object_id [search ... | dedup thread_object_id sortby +activity_ts | eval first_comment_ts=activity_ts | fields thread_object_id first_comment_ts]
When I run this search, it pairs events from my main search with timestamps for the wrong comments (the first_comment_ts is incorrect), as if the dedup thread_object_id sortby +activity_ts didn't sort it properly. In fact, it matches each thread_object_id with the first_comment_ts of the 2nd comment instead of the 1st.
When I run the subsearch on its own, everything looks fine. It only displays events that correspond to the first comment of each thread (first appearance of each thread_object_id when sorted by activity_ts , which is exactly what I want.
Here's an example event for a bit more clarification.
Subsearch result:
Main search result (after being joined with the subsearch):
Any ideas why the join command would be causing these inconsistencies? Or is there any way I could do this more efficiently, perhaps without using join ? I'm sort of at a loss here.
Thanks.
... View more
06-08-2015
10:37 AM
I figured it out. Instead of using NOT I did this:
... | where ![search ... | dedup title | eval title=substr(title, 5) | fields title]
... View more
06-08-2015
09:40 AM
I'm trying to filter out events from a search based on a list of strings retrieved from the results of another search, like this:
... NOT [search ... | dedup title | eval title=substr(title, 5) | fields title]
However, I keep getting a Regex: invalid UTF-8 string error.
Is my syntax incorrect? Should I be going about this a different way?
Let me know if I can provide any additional information to help.
... View more
06-03-2015
09:59 AM
I'm trying to only look at events that were modified over 1 year ago. I have a timestamp field called last_modified that I believe is in the form of a string (e.g. "1/1/2014"). How would I go about finding the difference between the current date and the last_modified date, and then filtering out all events for which that difference is less than 1 year? I've tried using the strptime function to convert the last_modified string to epoch time and then doing arithmetic with that and now() , but strptime didn't seem to work with last_modified .
last_modified is a value I retrieved from a lookup table that stores timestamps in epoch time, so it seems that it was converted to a human-readable string when the lookup was done. But I'm not sure why strptime isn't working.
Any advice?
... View more