[rabbitmq-discuss] RabbitMQ and Splunk

Alexis Richardson alexis at rabbitmq.com
Sat Oct 30 08:35:59 BST 2010


Michael

Very neat.

Will you make the Splunk plugin open source?

alexis



On Sat, Oct 30, 2010 at 1:13 AM, Michael Vierling
<MVierling at attinteractive.com> wrote:
> We're developing a Splunk plugin for RabbitMQ.  Splunk is an excellent log
> search engine and we highly recommend it.  Anyway, while Splunk can ingest
> almost any log files, it prefers a key-value pair format.  You can see this
> page for more details:
>
>
>
> http://www.splunk.com/wiki/Apps:Common_Information_Model
>
>
>
> So in that spirit, I'd like to propose the following patch to the
> rabbitmqadmin script, which ships with your management 2.1.1 plugin.  This
> patch adds a key-value pair Splunk compatible option (kvp) to the script.
> It would be very helpful if this could be incorporated into the official
> Management plugin.
>
>
>
> Best,
>
> Michael
>
>
>
> [root at tdbrabbit1 bin]# diff attadmin rabbitmqadmin
>
> 9d8
>
> < import datetime
>
> 124c123
>
> <                       help="format for listing commands - one of
> [pretty_json, raw_json, table, tsv, kvp, long]  [default: %default]")
>
> ---
>
>>                       help="format for listing commands - one of
>> [pretty_json, raw_json, table, tsv, long]  [default: %default]")
>
> 284,285d282
>
> <     elif format == "kvp":
>
> <         formatter = KVPList
>
> 358,371d354
>
> < class KVPList(Lister):
>
> <     def __init__(self, options):
>
> <         self.options = options
>
> <
>
> <     def display_list(self, columns, table):
>
> <         fmt = "{0} = {1}, "
>
> <         timestamp = datetime.datetime.now()
>
> <         line = ""
>
> <         for i in xrange(0, len(table)):
>
> <             line = str(timestamp) + ", "
>
> <             for j in xrange(0, len(columns)):
>
> <                 line += fmt.format(columns[j], table[i][j])
>
> <             print line
>
> <
>
>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>


More information about the rabbitmq-discuss mailing list