forked from KrisBuytaert/puppet-logstash
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.dev.unifiedpost.com/repos/it/puppet/modules/logstash/trunk@6 981703c8-b323-4728-b969-ff5e5cfaebfe
- Loading branch information
Kris Buytaert
committed
Feb 21, 2012
1 parent
2bf8bf9
commit 2283db2
Showing
9 changed files
with
417 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
input { | ||
amqp { | ||
# ship logs to the 'rawlogs' fanout queue. | ||
type => "all" | ||
host => "127.0.0.1" | ||
exchange_type => "fanout" | ||
name => "rawlogs" | ||
} | ||
} | ||
|
||
filter { | ||
multiline { | ||
type => "JavaStackTraces" | ||
pattern => "^\t" | ||
what => "previous" | ||
} | ||
grok { | ||
type => "syslog" # for logs of type "syslog" | ||
pattern => "%{SYSLOGLINE}" | ||
# You can specify multiple 'pattern' lines | ||
} | ||
|
||
grok { | ||
type => "apache-access" # for logs of type 'apache-access' | ||
pattern => "%{COMBINEDAPACHELOG}" | ||
} | ||
|
||
date { | ||
type => "syslog" | ||
|
||
# The 'timestamp' and 'timestamp8601' names are for fields in the | ||
# logstash event. The 'SYSLOGLINE' grok pattern above includes a field | ||
# named 'timestamp' that is set to the normal syslog timestamp if it | ||
# exists in the event. | ||
timestamp => "MMM d HH:mm:ss" # syslog 'day' value can be space-leading | ||
timestamp => "MMM dd HH:mm:ss" | ||
timestamp8601 => ISO8601 # Some syslogs use ISO8601 time format | ||
} | ||
|
||
date { | ||
type => "apache-access" | ||
timestamp => "dd/MMM/yyyy:HH:mm:ss Z" | ||
} | ||
} | ||
|
||
output { | ||
stdout { } | ||
|
||
# If your elasticsearch server is discoverable with multicast, use this: | ||
#elasticsearch { } | ||
|
||
# If you can't discover using multicast, set the address explicitly | ||
elasticsearch { | ||
host => "127.0.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
#******************************************************************** | ||
# Wrapper Properties | ||
#******************************************************************** | ||
# Java Application | ||
wrapper.java.command=java | ||
|
||
# Java Main class. This class must implement the WrapperListener interface | ||
# or guarantee that the WrapperManager class is initialized. Helper | ||
# classes are provided to do this for you. See the Integration section | ||
# of the documentation for details. | ||
#wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp | ||
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp | ||
|
||
# Java Classpath (include wrapper.jar) Add class path elements as | ||
# needed starting from 1 | ||
wrapper.java.classpath.1=/usr/share/java/tanukiwrapper.jar | ||
wrapper.java.classpath.2=/usr/local/logstash/lib/<%= jarname %> | ||
|
||
# Java Library Path (location of Wrapper.DLL or libwrapper.so) | ||
wrapper.java.library.path.1=/usr/lib64 | ||
|
||
# Java Additional Parameters | ||
#wrapper.java.additional.1= | ||
|
||
# Initial Java Heap Size (in MB) | ||
#wrapper.java.initmemory=3 | ||
|
||
# Maximum Java Heap Size (in MB) | ||
#wrapper.java.maxmemory=64 | ||
|
||
# Application parameters. Add parameters as needed starting from 1 | ||
wrapper.app.parameter.1=/usr/local/logstash/lib/<%= jarname %> | ||
wrapper.app.parameter.2=agent | ||
wrapper.app.parameter.3=-f | ||
wrapper.app.parameter.4=/etc/logstash/indexer.conf | ||
<% if verbose == 'yes' %> | ||
wrapper.app.parameter.5=-vvvvv | ||
<% end %> | ||
|
||
|
||
#******************************************************************** | ||
# Wrapper Logging Properties | ||
#******************************************************************** | ||
# Format of output for the console. (See docs for formats) | ||
wrapper.console.format=PM | ||
|
||
# Log Level for console output. (See docs for log levels) | ||
wrapper.console.loglevel=INFO | ||
|
||
# Log file to use for wrapper output logging. | ||
wrapper.logfile=/var/log/logstash/server-wrapper.log | ||
|
||
# Format of output for the log file. (See docs for formats) | ||
wrapper.logfile.format=LPTM | ||
|
||
# Log Level for log file output. (See docs for log levels) | ||
wrapper.logfile.loglevel=INFO | ||
|
||
# Maximum size that the log file will be allowed to grow to before | ||
# the log is rolled. Size is specified in bytes. The default value | ||
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or | ||
# 'm' (mb) suffix. For example: 10m = 10 megabytes. | ||
wrapper.logfile.maxsize=0 | ||
|
||
# Maximum number of rolled log files which will be allowed before old | ||
# files are deleted. The default value of 0 implies no limit. | ||
wrapper.logfile.maxfiles=0 | ||
|
||
# Log Level for sys/event log output. (See docs for log levels) | ||
wrapper.syslog.loglevel=NONE | ||
|
||
#******************************************************************** | ||
# Wrapper Windows Properties | ||
#******************************************************************** | ||
# Title to use when running as a console | ||
wrapper.console.title=@app.long.name@ | ||
|
||
#******************************************************************** | ||
# Wrapper Windows NT/2000/XP Service Properties | ||
#******************************************************************** | ||
# WARNING - Do not modify any of these properties when an application | ||
# using this configuration file has been installed as a service. | ||
# Please uninstall the service before modifying this section. The | ||
# service can then be reinstalled. | ||
|
||
# Name of the service | ||
wrapper.ntservice.name=@app.name@ | ||
|
||
# Display name of the service | ||
wrapper.ntservice.displayname=@app.long.name@ | ||
|
||
# Description of the service | ||
wrapper.ntservice.description=@app.description@ | ||
|
||
# Service dependencies. Add dependencies as needed starting from 1 | ||
wrapper.ntservice.dependency.1= | ||
|
||
# Mode in which the service is installed. AUTO_START or DEMAND_START | ||
wrapper.ntservice.starttype=AUTO_START | ||
|
||
# Allow the service to interact with the desktop. | ||
wrapper.ntservice.interactive=false | ||
|
Oops, something went wrong.