Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Message-Passing-Output-MongoDB

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 README
README
NAME
    Message::Passing::Output::MongoDB - MongoDB output

SYNOPSIS
        message-pass --input STDIN --output MongoDB --output_options '{"hostname": "localhost", "database":"log_database", "collection":"logs"}'
        {"foo":"bar"}

DESCRIPTION
    Output messages to File

METHODS
  consume
    Consumes a message by JSON encoding it save it in MongoDB

ATTRIBUTES
  hostname
    Required, Str, your mongodb host

  database
    Required, Str, the database to use.

  collection
    Required, Str, the collection to use.

  port
    Num, the mongodb port, default is 27017

  username
    Str, mongodb authentication user

  password
    Str, mongodb authentication password

  indexes
    ArrayRef[ArrayRef[HashRef]], mongodb indexes

        ...
        indexes => [
            [{"foo" => 1, "bar" => -1}, { unique => true }],
            [{"foo" => 1}],
        ]
        ...

  retention
    Int, time in seconds to conserver logs, set 0 to keep it permanent,
    default is a week

  verbose
    Boolean, verbose

SEE ALSO
    Message::Passing

SPONSORSHIP
    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>

AUTHOR, COPYRIGHT AND LICENSE
    See Message::Passing.

Something went wrong with that request. Please try again.