Hello,
We have a search that is looking through a script that calculates the size of directories throughout the day and we would like to see the delta change over time per directory. Here is what we have so far:
index=sccm sourcetype=sccm source="E:\SCCM2012-folderdata\SCCM-Folder-Status-Counter-S02-v10.CSV" Size>5 AND Directory!=*pkginfo.box| delta Size AS Size | timechart span=30m avg(Size) by Directory useother="f"
The delta only works when I specify just one directory and will not calculate is for every directory individually. Any ideas what Im doing wrong in the search or evaluation? Or is there an easier way to do this?
Thanks!
Hello,
Check out my post cumulative-counters-by-host. This is a ver similar problem I faced with cumulative counters.
I would recommend doing a something like this:
index=sccm sourcetype=sccm source="E:\SCCM2012-folderdata\SCCM-Folder-Status-Counter-S02-v10.CSV" Size>5 AND Directory!=*pkginfo.box| sort Directory, _time | autoregress Directory as preDirectory | delta Size as Size | eval Size=if(Directory == preDirectory, Size, null())| timechart span=30m avg(Size) by Directory useother="f"
Break down:
This section groups Directories together by name then sorts by _time.
...| sort Directory, _time
... | sort Directory, _time | autoregress Directory as preDirectory
... | sort Directory, _time |autoregress Directory as preDirectory |delta Size as Size
... | sort Directory, _time |autoregress Directory as preDirectory | delta Size as Size | eval Size=if(Directory == preDirectory, Size, null())
Hello,
Check out my post cumulative-counters-by-host. This is a ver similar problem I faced with cumulative counters.
I would recommend doing a something like this:
index=sccm sourcetype=sccm source="E:\SCCM2012-folderdata\SCCM-Folder-Status-Counter-S02-v10.CSV" Size>5 AND Directory!=*pkginfo.box| sort Directory, _time | autoregress Directory as preDirectory | delta Size as Size | eval Size=if(Directory == preDirectory, Size, null())| timechart span=30m avg(Size) by Directory useother="f"
Break down:
This section groups Directories together by name then sorts by _time.
...| sort Directory, _time
... | sort Directory, _time | autoregress Directory as preDirectory
... | sort Directory, _time |autoregress Directory as preDirectory |delta Size as Size
... | sort Directory, _time |autoregress Directory as preDirectory | delta Size as Size | eval Size=if(Directory == preDirectory, Size, null())