ELASTALERT(1)
π ELASTALERT π
okay bestie, gather round, because we're about to talk about elastalert β a whole User Commands girlie living her best life in section 1 of the manual. she's literally just called elastalert. that's it. that's the name. iconic behavior tbh. π¦
β¨ DESCRIPTION β¨
so like, here's the whole vibe of how you run her:
usage: elastalert [-h] [--config CONFIG] [--debug] [--rule RULE]
[--silence SILENCE] [--start START] [--end END] [--verbose]
[--patience TIMEOUT] [--pin_rules] [--es_debug] [--es_debug_trace
ES_DEBUG_TRACE]
that's the whole entrance. she walks in, she says that, she does her thing. no notes. π
π options: π
not me listing every single one of these because we do NOT skip the boring parts in this house π
-h,--helpβ shows you this help message and then dips out. exit stage left. very "thanks for coming to my ted talk" of her. π--config CONFIGβ points at the global config file. the default isconfig.yaml, so if you don't say anything she's just gonna go look there. she's predictable like that. π--debugβ suppresses alerts and prints information instead. lowkey useful for snooping on what she's doing. not compatible with--verbosethough, so pick a lane bestie. π--rule RULEβ runs only one specific rule, by filename. and yes she means it: it must still be in the rules folder. no sneaking files in from your desktop. π«--silence SILENCEβ silences a rule for a time period. must be used with--rule, they're a package deal, a duo, a two-piece set. usage goes like this:
--silence <units>=<number>
so for example, --silence hours=2 β that's two whole hours of peace and quiet. serene. π§
--start STARTβ takes aYYYY-MM-DDTHH:MM:SStimestamp and starts querying from there. you can also just write"NOW"if you wanna start from the current time. the default is present. π--end ENDβ takes aYYYY-MM-DDTHH:MM:SStimestamp and queries up to it. the default is, you guessed it, present. β³--verboseβ cranks up the verbosity without suppressing alerts, so you get all the words AND all the alerts. not compatible with--debug. choose your fighter. βοΈ--patience TIMEOUTβ the maximum time to wait for ElasticSearch to become responsive. she will wait, but she has limits. usage:
--patience <units>=<number>
for example, --patience minutes=5 β five minutes of her standing there politely. πΈ
--pin_rulesβ stops ElastAlert from monitoring config file changes. she stops looking. she's committed. she's locked in. π--es_debugβ enables verbose logging from Elasticsearch queries. all the tea, spilled. π«--es_debug_trace ES_DEBUG_TRACEβ enables logging from Elasticsearch queries as a curl command. queries get logged to a file. > heads up though: this will incorrectly displaylocalhost:9200as the host/port, so don't come for her when that looks weird, she warned you. π
and that's the whole page bestie, we ate and left absolutely zero crumbs. this was elastalert version 0.2.4-3, dated December 2022, and honestly? she's giving vintage but make it useful. slay, stay hydrated, and read your configs. mwah πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: elastalert 0.2.4-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms