Go to main content

Using Oracle® Solaris 11.4 StatsStore and System Web Interface

Exit Print View

Updated: February 2019
 
 

Match Values

The op.filter operation returns only data values that match the filter argument. The filter argument is one of the following types:

  • Numeric

  • String

  • Key=value pair

The following example shows times when no bytes were received:

$ sstore export -t 2016-03-11T08:30:10 -e 2016-03-11T08:30:45 \
> "//:class.link/phys//:res.name/net0//:stat.rbytes//:op.rate//:op.filter(0)"
TIME                VALUE IDENTIFIER
2016-03-11T08:30:11 0.0 //:class.link/phys//:res.name/net0//:stat.rbytes//:op.rate//:op.filter(0)
2016-03-11T08:30:29 0.0 //:class.link/phys//:res.name/net0//:stat.rbytes//:op.rate//:op.filter(0)
2016-03-11T08:30:45 0.0 //:class.link/phys//:res.name/net0//:stat.rbytes//:op.rate//:op.filter(0)

The following example uses two key=value pairs to show a summary of an event in which user usr1 successfully restarted the svc:/system/webui/server:default service on the system named host1:

$ sstore export -t 2016-06-11T08:00:00 \
> "//:class.event//:event.adm-action//:op.filter(fmri/value=svc:/system/webui,event=AUE_smf_restart)//:fmt.summary"
TIME                VALUE IDENTIFIER
2016-06-11T19:09:01  //:class.event//:event.adm-action//:op.filter(fmri/value=svc:/system/webui, event=AUE_smf_restart)//:fmt.summary
                    0:
                        ts: 1465697341080424
                        label: restart service instance
                        description: usr1 (usr1:staff) success restart service instance on host1
                        tags: ('solaris/sys',)
                        status: success