Quantcast
Channel: Questions in topic: "datamodel"
Viewing all articles
Browse latest Browse all 226

How do I add a time range to a datamodel search that cannot use tstats?

$
0
0
I have a data model where the object is generated by a search which doesn't permit the DM to be accelerated which means no tstats. I am wanting to do a appendcols to get a delta between averages for two 30 day time ranges. The search I am trying to get to work is: | datamodel TEST One search | `drop_dm_object_name("One")` | dedup host-ip plugin_id | where severity > 0 **| where earliest=-30d@d latest=+0s** | stats dc(plugin_id) AS signature_count by host-ip | stats avg(signature_count) as current_avg | appendcols [| datamodel TEST One search | `drop_dm_object_name("One")` | dedup host-ip plugin_id | where severity > 0 | **where earliest=--60d@d latest=-30d@d** | stats dc(plugin_id) AS signature_count by host-ip | stats avg(signature_count) as historical_avg] | `get_delta(current_avg,historical_avg)` I know the bold items are incorrect, but I am using them as place holders to show the time ranges that are broken out. So what the heck am I doing wrong? Thanks in advance for any help.

Viewing all articles
Browse latest Browse all 226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>