AdvancedSearch - dwilkie/nuntium GitHub Wiki
= Advanced search =
You can use the syntax {{{key:value}}} to perform advanced search operations, both on messages and logs. Following is a description of each search key.
== Messages ==
- id:number - searches messages with the given id. AdvancedSearch#!numbers
- from:text - searches messages with the given from field. AdvancedSearch#!texts
- to:text - searches messages with the given to field. AdvancedSearch#!texts
- subject:text - searches messages with the given subject. AdvancedSearch#!texts
- body:text - searches messages with the given body. AdvancedSearch#!texts
- guid:text - searches messages with guids that contain the given text.
- channel_relative_id:text - searches the message with channel relative ids that contain the given text.
- state:text - searches messages with the given state. State can be //error//, //failed//, //queued//, //delivered// or //confirmed//.
- channel:name - searches messages that are in the channel with the given name.
- tries:number - searches messages with the given tries amount. AdvancedSearch#!numbers
- before:date - searches messages that happened after the given date. AdvancedSearch#!dates.
- after:date - searches messages that happened after the given date. AdvancedSearch#!dates.
- updated_at:date - searches messages that where updated at the given date. AdvancedSearch#!dates.
== Logs ==
- ao:number - searches messages with the given Application Originated message id. AdvancedSearch#!numbers
- at:number - searches messages with the given Application Terminated message id. AdvancedSearch#!numbers
- channel:name - searches messages that are in the channel with the given name.
- severity:text - searches messages with the given severity. Severity can be //info//, //warning// or //error//. You can also do things like //severity:>=warning//.
- before:date - searches messages that happened after the given date. AdvancedSearch#!dates.
- after:date - searches messages that happened after the given date. AdvancedSearch#!dates.
== Texts ==
When searching fields that are texts you can write any of these:
- subject:something
- subject:"something that has spaces on it"
The search is done without case taking into account, and it searches for inclusion of that text, not an exact match.
== Numbers ==
When searching fields that are numbers you can write any of these:
- tries:0 - tries must be zero
- tries:<2 - tries is less than 2
- tries:>2 - tries is greater than 2
- tries:<=2 - tries is less than or equal to 2
- tries:>=2 - tries is greater than or equal to 2
== Dates ==
When searching before or after a giving date you can supply natural language restrictions. Some examples:
- before:"3 days ago"
- after:"1 hour ago"