Skip to content
Daniel Galán y Martins edited this page Aug 26, 2013 · 3 revisions

put adds messages to a destination. Each message is represented by a simple format in the form <properties>\tbody, where properties are a simple json-encoded array, separated by a tab from the body. Messages can be passed by stdin or a file.

Syntax

pput <target> [options] (short for plunger <target> -C put [options])

Example

Simple message with and without a property

$ echo -e "{}\tHello world!" | pput target
$ echo -e "{\"myproperty\":\"sample\"}\tHello\nworld!" | pput target

Command line arguments

Available via pput --help

  • -f,--file / file with escaped messages (instead of stdin).
  • -s,--skip / skip lines with errors.
Clone this wiki locally