Skip to content

Instantly share code, notes, and snippets.

@frsyuki
Created July 27, 2015 05:03
Show Gist options
  • Save frsyuki/4b6a856bd7e3ad508b10 to your computer and use it in GitHub Desktop.
Save frsyuki/4b6a856bd7e3ad508b10 to your computer and use it in GitHub Desktop.
variables: # declare variables in a config file
myval: 1
plugin_variables: # run an input plugin, and use tha last (or first) row as variables
type: postgresql
query: select max(id) as max_id from access
database: production
host: pg_analyze
in:
type: mysql
query: select id, host, ip from access_source where ${max_id} < id
database: production
host: my_tran
out:
type: postgresql
table: access
database: production
host: pg_analyze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment