Skip to content

Commit

Permalink
Minor (or maybe major) change to example comments. Mixed up durable a…
Browse files Browse the repository at this point in the history
…nd persistent.
  • Loading branch information
lusis committed Jan 20, 2012
1 parent 686690a commit 23a1e8d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/just-enough-amqp-for-logstash.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ input {
output { stdout { debug => true }}
```

## Message durability
## Message persistence
By default, logstash will attempt to ensure that you don't lose any messages. This is reflected in the AMQP default settings as well.
However there are cases where you might not want this. A good example is where AMQP is not your primary method of shipping.

In the following example, we use AMQP as a sniffing interface. Our primary destination is the embedded ElasticSearch instance. We have
a secondary AMQP output that we use for duplicating messages. However we disable durability on this interface so that messages
a secondary AMQP output that we use for duplicating messages. However we disable persistence and durability on this interface so that messages
don't pile up waiting for delivery. We only use AMQP when we want to watch messages in realtime. Additionally, we're going to leverage
routing keys so that we can optionally filter incoming messages to subsets of hosts. The exercise of getting messages to this logstash
agent are left up to the user.
Expand All @@ -140,8 +140,9 @@ output {
host => "my_amqp_server"
exchange_type => "topic" # We use topic here to enable pub/sub with routing keys
key => "logs.%{host}"
durable => false # If there are no bindings, messages will essentially devnull
persistent => false # If the logstash agent disconnects, the declared exchange will go away with it
durable => false # If rabbitmq restarts, the exchange disappears.
auto_delete => true # If logstash disconnects, the exchange goes away
persistent => false # Messages are not persisted to disk
}
}
```
Expand Down

0 comments on commit 23a1e8d

Please sign in to comment.