Skip to content

Instantly share code, notes, and snippets.

@clintongormley
Created August 6, 2012 17:32
Show Gist options
  • Save clintongormley/87fa2a538bb8945d0dcb to your computer and use it in GitHub Desktop.
Save clintongormley/87fa2a538bb8945d0dcb to your computer and use it in GitHub Desktop.
use IO::Scalar;
use ElasticSearch;
my $es_log;
my $es_fh = IO::Scalar->new(\$es_log);
*ElasticSearch::Transport = sub {
shift->JSON->pretty;
return $es_fh;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment