Skip to content

Commit

Permalink
Updated code for renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
jamtur01 committed Jan 3, 2014
1 parent 3567e96 commit 2b729d0
Show file tree
Hide file tree
Showing 25 changed files with 65 additions and 29 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# The LogStash Book Code Repository
# The Logstash Book Code Repository

Contains the code and configuration examples from [The LogStash
Contains the code and configuration examples from [The Logstash
Book](http://www.logstashbook.com).

*Now updated for LogStash v1.2.0.*
*Now updated for Logstash v1.3.2.*

## Errata

Expand Down
2 changes: 1 addition & 1 deletion code/2/sample.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down
2 changes: 1 addition & 1 deletion code/3/central.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down
2 changes: 1 addition & 1 deletion code/3/logstash-agent-init
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/sh
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
#
Expand Down
2 changes: 1 addition & 1 deletion code/3/logstash-central-init
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#

Expand Down
2 changes: 1 addition & 1 deletion code/3/logstash-web-init
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#

Expand Down
2 changes: 1 addition & 1 deletion code/3/shipper.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down
4 changes: 2 additions & 2 deletions code/4/logstash_forwarder_debian_defaults
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
# Options for the LogStash Forwarder
# Options for the Logstash Forwarder
LOGSTASH_FORWARDER_OPTIONS="-config /etc/logstash-forwarder/logstash-forwarder.conf"
2 changes: 1 addition & 1 deletion code/4/logstash_forwarder_debian_init
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#

Expand Down
2 changes: 1 addition & 1 deletion code/4/logstash_forwarder_redhat_init
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/sh
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
# logstash-forwarder Start/Stop logstash-forwarder
Expand Down
4 changes: 2 additions & 2 deletions code/4/logstash_forwarder_redhat_sysconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
# Options for the LogStash Forwarder
# Options for the Logstash Forwarder
LOGSTASH_FORWARDER_OPTIONS="-config /etc/logstash-forwarder/logstash-forwarder.conf"
2 changes: 1 addition & 1 deletion code/4/lumberjack-debian-defaults
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
# Options for lumberjack
Expand Down
2 changes: 1 addition & 1 deletion code/4/lumberjack-debian-init
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#

Expand Down
2 changes: 1 addition & 1 deletion code/4/lumberjack-redhat-init
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/sh
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
# lumberjack Start/Stop lumberjack
Expand Down
2 changes: 1 addition & 1 deletion code/4/lumberjack-redhat-sysconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
# Options for lumberjack
Expand Down
2 changes: 1 addition & 1 deletion code/5/apache_log.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
LogFormat "{ \
Expand Down
2 changes: 1 addition & 1 deletion code/5/central.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down
2 changes: 1 addition & 1 deletion code/5/postfix_patterns
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#

Expand Down
14 changes: 13 additions & 1 deletion code/5/shipper.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down Expand Up @@ -54,6 +54,18 @@ filter {
timezone => tz
add_tag => [ "dated" ]
}
if [apprelease] == "QA Release" {
mutate {
add_field => [ "environment", "qa" ]
}
else {
mutate {
add_field => [ "environment", "production" ]
}
}
mutate {
convert => [ "line", "integer" ]
}
}
}
output {
Expand Down
14 changes: 13 additions & 1 deletion code/6/shipper.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down Expand Up @@ -54,6 +54,18 @@ filter {
timezone => tz
add_tag => [ "dated" ]
}
if [apprelease] == "QA Release" {
mutate {
add_field => [ "environment", "qa" ]
}
else {
mutate {
add_field => [ "environment", "production" ]
}
}
mutate {
convert => [ "line", "integer" ]
}
}
}
output {
Expand Down
2 changes: 1 addition & 1 deletion code/7/central.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down
14 changes: 13 additions & 1 deletion code/7/shipper.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
input {
Expand Down Expand Up @@ -54,6 +54,18 @@ filter {
timezone => tz
add_tag => [ "dated" ]
}
if [apprelease] == "QA Release" {
mutate {
add_field => [ "environment", "qa" ]
}
else {
mutate {
add_field => [ "environment", "production" ]
}
}
mutate {
convert => [ "line", "integer" ]
}
}
}
output {
Expand Down
2 changes: 1 addition & 1 deletion code/8/cowsay.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
require "logstash/outputs/base"
Expand Down
2 changes: 1 addition & 1 deletion code/8/namedpipe.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
require 'logstash/namespace'
Expand Down
2 changes: 1 addition & 1 deletion code/8/suffix.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From The LogStash Book
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
require "logstash/filters/base"
Expand Down

0 comments on commit 2b729d0

Please sign in to comment.