How to route messages to multiple files/stores

10 views
Skip to first unread message

Sachin

unread,
Dec 4, 2009, 4:04:42 AM12/4/09
to Scribe Server
Hi,

We want messages with particular category to be routed to multiple log
files or stores. Is that possible with scribe?

Sachin

unread,
Dec 4, 2009, 4:08:06 AM12/4/09
to Scribe Server
Sorry, my bad. Its been a while since i read the documentation, Multi
store is the way to go!

Multi Store Configuration

A Multi Store is a store that will forward all messages to multiple
sub-stores.

A Multi Store may have any number of substores named “store0”,
“store1”, “store2”, etc

anthony

unread,
Dec 7, 2009, 3:39:25 PM12/7/09
to Scribe Server
Usually when I want to do this, I just create 2 stores for a given
category. Scribe will then forward to both of them.

<store>
category=foo
...
</store>
<store>
category=foo
...
</store>

The only caveat is that this currently doesn't work for prefix stores
(ie category names that end in a wildcard *) or the 'default'
store.
In these cases, you would need to use a multistore.

-Anthony

Sachin

unread,
Dec 7, 2009, 11:26:48 PM12/7/09
to Scribe Server
Thanks Anthony, this works too for me.
Reply all
Reply to author
Forward
0 new messages