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
Next revision
Previous revision
wiki:logstash_setup [2024/08/30 12:02] – add datastreams howto 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:
  
Line 215: Line 227:
  
 ====== See also ====== ====== See also ======
 +  * [[wiki:rollover_opensearch_elasticsearch_indexes|Rollover opensearch/elasticsearch indexes]]
   * [[wiki:opensearch_installation|Opensearch installation]]   * [[wiki:opensearch_installation|Opensearch installation]]
      
wiki/logstash_setup.1725019341.txt.gz · Last modified: 2024/08/30 12:02 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