How to use the not begins operator in Netwitness Reporting Engine query
Issue
When writing a query only the following operators are available- =
- !=
- begins
- contains
- ends
- exists
- !exists
- length
- regex
- not begins
- not contains
- not ends
Tasks
To solve this issue create an app rule that will tag the meta that you are interested,For example, suppose you wanted to find all destination usernames that did not begin with foo.
You can create an app rule on your logdecoder as follows
- SA GUI -> Services -> Log Decoder ->Config
- App Rules Tab
- Create an App Rule with Rule Name "Account Begins with Foo"
- Condition is user.dst begins foo
- Sessions Options - Tick Alert and Alert on metakey "Alert"
- Apply the App Rule
Resolution
Instead, you could create an app rule that flags wildcard strings and then refer to that app rule with a NOT (!=) operator in the report query.
In your report, use the following in your rule to display all usernames that do not begin with foo.
select: user.dst
where alert != '"Account Begins with Foo"
Product Details
Product Set: Netwitness Admin Server
Product/Service Type: Netwitness Admin Server, Reporting Engine
Version/Condition: 11.x, 12.x
O/S Version: CentOS/AlmaLinux
Approval Reviewer Queue
Technical approval queue