In certain circumstances, you may need to use a wildcard query. For example, you may want to find data on any classification name that contains Malware in its name (Malware X, Malware Y, Malware Z, etc.). If you run a query using the term Malware, your search results will display only exact matches. You will see data for Malware but not for Malware X, Malware Y, or Malware Z. To get the data you are looking for, you need to use a wildcard query.
For one-word wildcard filtering, remove the quotation marks and place an asterisk (*) where you would like to use a wildcard.
EXAMPLE - ONE WORD
To run a query for all classifications containing the word Malware:
For wildcard searches using multiple terms, use forward slashes (in place of quotation marks) to indicate regex syntax. In Lucene queries, the set of operators for wildcard searches is limited when compared to the full Java-supported regex.
For single-character wildcards, use a period and question mark combination (.?).
EXAMPLE - SINGLE CHARACTER
To run a query for impacted users named Jon, Jan, Jin, or Jen:
For multi-character wildcards, use an asterisk (*) when your search term contains a single word. When your search term contains multiple words, use a period and asterisk combination (.*).
EXAMPLE - MULTI CHARACTER
To run a query for all common events that begin with "AIE: SANS":
- commonEventName:/AIE: SANS.*/
To run a query for all impacted users whose name begins with Jo:
To run a query for all impacted users whose account ends with Smith:
To search for all classifications containing the word Malware:
You can also use wildcard queries to filter results by blank or non-blank term fields.
EXAMPLE - BLANK and NON-BLANK
To run a query for all log messages classified under any major activity group:
To run a query for all log messages NOT classified under any major activity group:
- *:* AND NOT classificationName:/.*/
To use a fuzzy match to locate terms similar to what you type, use a tilde (~) with no quotations marks or slashes.
EXAMPLE - FUZZY MATCH
To run a query for impacted users whose names are similar to Jon, such as Ron or John: