using python tail multiple files concurrently and push log files to facebook/scribe
<p>I would like to tail multiple files concurrently using python and send the logs to scribe to the respective bucket </p>

<p>I get the buckets using </p>

<pre><code>dict(Config.items('files')).keys()
</code></pre>

<p>I get the files using </p>

<pre><code>dict(Config.items('files')).values()
</code></pre>

<p>I want to tail all the files concurrently and then push the log to scribe in the specific bucket </p>

<pre><code>log_entry = scribe.LogEntry(category, message)

socket = TSocket.TSocket(host='localhost', port=1463)
transport = TTransport.TFramedTransport(socket)
protocol = TBinaryProtocol.TBinaryProtocol(trans=transport, strictRead=False, strictWrite=False)
client = scribe.Client(iprot=protocol, oprot=protocol)

transport.open()
result = client.Log(messages=[log_entry])
transport.close()
</code></pre>
