1.0.7 • Published 5 years ago

@pastash/filter_command v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

PaStash Command Filter

This is an experimental filter executing a pipeline of commands against an array of objects, emitting results.

Usage Example

Initialize the command filter and load any plugins. Point to the JSON field containing the data Array.

input {
  stdin{}
}

filter {
  json_fields {}
  command {
    debug => true
    field => message
    plugins => ['@pastash/command_chain']
    cmd => ".filter('eyes', 'brown').chain().groupBy('sex')"
  }
}

output {
  stdout {}
}

Pass it an Array

[{ "sex": "male", "age": 35, "eyes": "brown" },{ "sex": "female", "age": 38, "eyes": "brown" },{ "sex": "male", "age": 29, "eyes": "brown" }]
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago