User Tools

Site Tools


wiki:logstash_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:logstash_setup [2024/09/03 11:36] – [See also] add Rollover opensearch/elasticsearch indexes antisawiki:logstash_setup [2024/10/17 13:05] (current) – [nginx logs using regular indices] add info about multiple file inputs antisa
Line 46: Line 46:
  
 </code> </code>
 +<WRAP center round tip 60%> 
 +You can also use multiple file inputs like so: 
 +<code> 
 +input { 
 +   file { path => [ 
 +     "/var/log/nginx/nginx_logs*_access.log", 
 +     "/var/log/nginx/some_other_web*_access.log" 
 +     ] 
 +   } 
 +
 +... 
 +</code>  
 +</WRAP>
 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

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki