<s> from flow import Fanin , Switch <EOL> from inputs . udp import Udp <EOL> from inputs . zeromq import Zeromq <EOL> from filters . json import Json <EOL> from filters . stats import Stats <EOL> from outputs . graphite import Graphite <EOL> from outputs . elasticsearch import Elasticsearch <EOL> from outputs . file import File <EOL> from outputs . s3 import S3 <EOL> with Fanin ( ) : <EOL> Udp ( port = <NUM_LIT> ) <EOL> Zeromq ( ) <EOL> Json ( ) <EOL> Stats ( timings = { '<STR_LIT>' : '<STR_LIT>' } ) <EOL> File ( filename = '<STR_LIT>' , max_size = <NUM_LIT> , compress = '<STR_LIT>' ) <EOL> with Switch ( ) as case : <EOL> with case ( "<STR_LIT>" ) : <EOL> S3 ( access_key = '<STR_LIT>' , <EOL> secret_key = '<STR_LIT>' , <EOL> bucket = '<STR_LIT>' , <EOL> path = '<STR_LIT>' ) <EOL> with case ( "<STR_LIT>" ) : <EOL> Graphite ( ) <EOL> with case . default : <EOL> Elasticsearch ( index = '<STR_LIT>' , type = '<STR_LIT>' ) </s>
