wiki:logstash_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
wiki:logstash_setup [2024/09/03 11:36] – [See also] add Rollover opensearch/elasticsearch indexes antisa | wiki:logstash_setup [2024/10/17 13:05] (current) – [nginx logs using regular indices] add info about multiple file inputs antisa | ||
---|---|---|---|
Line 46: | Line 46: | ||
</ | </ | ||
+ | <WRAP center round tip 60%> | ||
+ | You can also use multiple file inputs like so: | ||
+ | < | ||
+ | input { | ||
+ | file { path => [ | ||
+ | "/ | ||
+ | "/ | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
Above we're using a grok pattern named **NGINX_ACCESS** stored in patterns directory. Example of pattern: | Above we're using a grok pattern named **NGINX_ACCESS** stored in patterns directory. Example of pattern: | ||
wiki/logstash_setup.1725363366.txt.gz · Last modified: 2024/09/03 11:36 by antisa