Message::Passing::Output::MongoDB - message-passing out put to MongoDB
message-pass --input STDIN --output MongoDB --output_options '{"hostname": "localhost", "database":"log_database", "collection":"logs"}' {"foo":"bar"}
Module for Message::Passing, send output to MongoDB
Consumes a message by JSON encoding it save it in MongoDB
Required, Str, your mongodb host
Required, Str, the database to use.
Required, Str, the collection to use.
Num, the mongodb port, default is 27017
Str, mongodb authentication user
Str, mongodb authentication password
ArrayRef[ArrayRef[HashRef]], mongodb indexes
... indexes => [ [{"foo" => 1, "bar" => -1}, { unique => true }], [{"foo" => 1}], ] ...
Bool, default to 0, set to 1 to collect the fields' key and inserted in collection $self->collection . "_keys", execution at the starting and once per day.
Int, time in seconds to conserver logs, set 0 to keep it permanent, default is a week
Boolean, verbose
Message::Passing
This module exists due to the wonderful people at Suretec Systems Ltd. <http://www.suretecsystems.com/> who sponsored its development for its VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with the SureVoIP API - <http://www.surevoip.co.uk/support/wiki/api_documentation>
See Message::Passing.
To install Message::Passing::Output::MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Message::Passing::Output::MongoDB
CPAN shell
perl -MCPAN -e shell install Message::Passing::Output::MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.