Created
October 8, 2015 22:15
-
-
Save arturom/7ab17e4c5497bb385310 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -Pio '(?<=Request Body \[).+?(?=\] {"file")' ./app/tmp/logs/elasticsearch-php.log | tail | php -r 'stream_set_blocking(STDIN, 0); while(($line = fgets(STDIN)) !== false) { echo json_decode($line), PHP_EOL; }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment