osquery / osquery-python

Python bindings for osquery's Thrift API
Other
292 stars 51 forks source link

No handlers could be found for logger "thrift.transport.TSocket" #37

Closed prabhakarms closed 7 years ago

prabhakarms commented 7 years ago

Have osquery service running - sud./build/debug_centos7/osquery/osqueryd --allow_unsafe --pidfile /tmp/osquery.pid --database_path /tmp/osquery.db --extensions_socket=/var/osquery/osquery.em and would like execute queries on the running instance. Tried out the python example and running in to the following issue. Any thoughts ?

[vagrant@pdhillon-vm2 examples]$ python run.py 'select * from time' No handlers could be found for logger "thrift.transport.TSocket" Traceback (most recent call last): File "run.py", line 15, in RESULTS = CLIENT.extension_client().query(sys.argv[1]) File "build/bdist.linux-x86_64/egg/osquery/extensions/ExtensionManager.py", line 184, in query File "build/bdist.linux-x86_64/egg/osquery/extensions/ExtensionManager.py", line 193, in send_query File "build/bdist.linux-x86_64/egg/thrift/transport/TTransport.py", line 177, in flush File "build/bdist.linux-x86_64/egg/thrift/transport/TSocket.py", line 138, in write thrift.transport.TTransport.TTransportException: Transport not open [vagrant@pdhillon-vm2 examples]$

prabhakarms commented 7 years ago

Got it working. It was just a permission issues.