ReadTimeoutError while trying to create a snapshot

2014-10-14 Thread thales . claro
Hello,

this fuctions works perfectly when i try to create a snapshot of indexes 
lower than 100mb. But if i try to do it with one index that have more than 
600mb i receive an ugly exception.

Anyone know if i should use *master_timeout *in order to get it working?
code
def create_snapshot(self):
"""
Create new snapshot
:return:
"""
print "Creating new snapshot"
print "Snapshot: " + self.snap_name
try:
self.es.snapshot.create(
repository=self.repository_name,
snapshot=self.snap_name,
wait_for_completion="true"
)
except elasticsearch.ElasticsearchException:
raise
else:
print "Snapshot created"
finally:
pass
---code

- ERROR-
  File "/usr/lib/python2.6/site-packages/elasticsearch/client/utils.py", 
line 68, in _wrapped
return func(*args, params=params, **kwargs)
  File "/usr/lib/python2.6/site-packages/elasticsearch/client/snapshot.py", 
line 19, in create
repository, snapshot), params=params, body=body)
  File "/usr/lib/python2.6/site-packages/elasticsearch/transport.py", line 
284, in perform_request
status, headers, data = connection.perform_request(method, url, params, 
body, ignore=ignore, timeout=timeout)
  File 
"/usr/lib/python2.6/site-packages/elasticsearch/connection/http_urllib3.py", 
line 51, in perform_request
raise ConnectionError('N/A', str(e), e)
elasticsearch.exceptions.ConnectionError: 
ConnectionError(HTTPConnectionPool(host='127.0.0.1', port=9200): Read timed 
out. (read timeout=10)) caused by: 
ReadTimeoutError(HTTPConnectionPool(host='127.0.0.1', port=9200): Read 
timed out. (read timeout=10))

- ERROR-

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c4b27e68-c588-4d12-b8db-01b41c320687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can i work log results under Kibana/elastic search? our should i parse it before send the data to then?

2014-09-18 Thread thales . claro
Hello everyone,

I'm not sure if i can do this kind of data filtering under kibana , but 
after importing some logs under elastic search with success. How could i 
turn display a pie or bar chart this information based on the call count? 
For example, Using this data how could i show this data under a pie/bar 
chart like 2 occurrences ?  


{
  "_index": "logstash-2014.09.17",
  "_type": "wia-svc-profiler",
  "_id": "Silfh7kiSYGbfLsBAndr7w",
  "_score": null,
  "_source": {
"message": [
  "WmRoot/wm.server.query:getClusterError,2,0"
],
"@version": "1",
"@timestamp": "2014-09-17T16:42:22.174Z",
"Service Name": "WmRoot/wm.server.query:getClusterError",
"Call Count": "2",
"Exception Count": "0"
  }
}



Again, i'm not sure if i can do this kind of filtering using kibana.

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/9facb4e8-eda3-41ac-848b-b54ac343b650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.