Tags » Parsing

Python low-level AOP using AST rewriting - part II

In the previous post we started modifying functions body for AOP purposes. So far we’ve transformed a function to an AST node with extended code. In this post we will transform it to bytecode and replace the original method code with the new one. 1,100 more words


Python low-level AOP using AST rewriting - part I

This post and the next post will address AOP in Python. In general AOP in Python is very simple thanks to Python’s decorators. The aspects which we would like to apply in this post are low-level, meaning they’ll be applied on in-body instructions and not just on method level.  1,621 more words


'message' is important

In Logstash, each log line is termed a ‘message’. For some reason that I am not able to recollect (as I did the change on a Friday and ‘today’ was Monday), I changed the name to ‘errorText’. 43 more words


Elasticsearch not running, Logstash will not parse data

While developing scripts to parse data using Logstash, I noted weird behavior from Logstash. If there is an ‘elasticsearch’ block in the ‘output’ block of the Logstash script and Elasticsearch is not running when the Logstash script is executed, Logstash refuses to parse data sent to it. 21 more words


Resolver: still not perfect

I just found another bug in the rewritten 1.4.x resolver, and as much as I want to fix it (and I will)… part of me can’t help thinking if you encounter this bug, your code has greater problems than mine. 256 more words


Replaying Elasticsearch Slowlogs with Logstash and JMeter


Sometimes we just need to replay production queries – whether it’s because we want a realistic load test for the new version of a product or because we want to reproduce, in a test environment, a bug that only occurs in production (isn’t it lovely when that happens? 1,030 more words