JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr O6uf 4ddlZddlmZmZGddeeZy)N)PluginIndependentPluginc(eZdZdZdZdZdZdZdZy)ElasticzElasticSearch serviceelastic)services) elasticsearchcPd}d} t|d5}|D]}tjd|}tjd|}|rUt|j dk(r9|j dj }tj d d |}|st|j dk(s|j dj } d d d ||fS#1swY xYw#t$r$}|jd |d |Yd }~||fSd }~wwxYw)z Get hostname and port number localhost9200zUTF-8)encodingz(^network.host):(.*)z(^http.port):(.*)z"|\'NzFailed to parse z: ) openresearchlengroupsstripsub Exception _log_info) selfels_config_filehostnameportfreadline network_host network_porterrs >@A A~ A A H NN-o->bF G G~ Hs; C8B C,C,<#C, C8,C51C88 D%D  D%c P|jd}|j||jdr|jdn|jd|j|\}}|dz|z}|j d|dd|dd|d d|d d|d d|d d|d gy)Nz$/etc/elasticsearch/elasticsearch.ymlall_logsz/var/log/elasticsearch/*z/var/log/elasticsearch/*.log:z curl -X GET 'z/_cluster/settings?pretty'z/_cluster/health?pretty'z/_cluster/stats?pretty'z/_cat/nodes?v'z/_cat/indices'z /_cat/shards'z/_cat/aliases') path_join add_copy_spec get_optionr$add_cmd_output)rrhostrendpoints r#setupz Elastic.setup*s.. 2  ?+ ??: &   9 :   = >++O< d#:$ z)CDz)ABz)@Az8z8z7z8  N) __name__ __module__ __qualname__ short_desc plugin_nameprofilespackagesr$r.r/r#rrs (JKH!H& r/r)rsos.report.pluginsrrrr7r/r#r9s 80 f'0 r/