Module ImportFrom alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Import alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Break handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Break orelse AugAssignMult NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body AugAssignMult NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A output Output N/A gevent N/A gevent.monkey N/A N/A N/A N/A gevent monkey patch_socket N/A urllib2 N/A json Elasticsearch N/A Output N/A N/A Outputs to an elasticsearch index.

    :param string host: elasticsearch host
    :param integer port: elasticsearch port
    :param string index: (required) elasticsearch index. This can be formatted by fields in the event.
    :param string type: (required) elasticsearch type. This can be formatted by fields in the event.

    Example configuration for kibana::

        Mutate(rename={'@timestamp': 'timestamp', '@message': 'message'})
        Elasticsearch(index='logstash-{@timestamp:%Y.%m.%d}', type='event')
     N/A RETRIES 10 __init__ N/A N/A self index type host port N/A localhost 9200 N/A N/A N/A N/A N/A super Elasticsearch self __init__ N/A N/A self host host N/A N/A self port port N/A N/A self index index N/A N/A self type type N/A process N/A N/A self event N/A N/A N/A data N/A N/A event to_json N/A index N/A N/A event format N/A self index N/A itype N/A N/A event format N/A self type N/A N/A index N/A N/A N/A ValueError index is empty N/A N/A itype N/A N/A N/A ValueError type is empty N/A url N/A http://%s:%s/%s/%s/ N/A N/A self host N/A self port index itype N/A success False N/A delay 1.0 N/A retry N/A xrange N/A self RETRIES N/A N/A N/A N/A res N/A N/A urllib2 urlopen url data data N/A success True N/A result N/A N/A json load res N/A N/A N/A N/A N/A urllib2 HTTPError N/A ex N/A N/A N/A N/A N/A ex getcode 400 N/A N/A N/A N/A N/A self logger error N/A Bad request: %s, not retrying N/A ex N/A N/A N/A delay 2.0 N/A N/A N/A N/A self logger warn N/A Unable to index: %s, retrying in %ds N/A ex delay N/A N/A N/A gevent sleep delay N/A N/A N/A urllib2 URLError N/A ex N/A N/A delay 2.0 N/A N/A N/A N/A self logger warn N/A Unable to index: %s, retrying in %ds N/A ex delay N/A N/A N/A gevent sleep delay N/A success N/A N/A N/A N/A N/A self logger debug N/A Indexed to elasticsearch: index:%s type:%s id:%s N/A index itype N/A result N/A _id N/A N/A