-
package 설치
(
This file contains hidden or 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
# Output json-esque output for logstash to parse easily. | |
http { | |
# ... | |
log_format logstash_json '{"@timestamp": "$time_iso8601", ' | |
'"remote_addr": "$remote_addr", ' | |
'"remote_user": "$remote_user", ' | |
'"body_bytes_sent": "$body_bytes_sent", ' | |
'"request_time": "$request_time", ' |
This file contains hidden or 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
// db 쿼리와 그에 걸리는 시간을 로깅하기 위해 간단한 기술검증을 해본 코드이다. | |
// | |
// sql/driver 가 interface 를 잘 활용한 형태라서 간단히 내가 중간에 | |
// 코드를 끼워넣는게 가능하더라. 감동적임!! | |
// | |
// 아래 코드는 드라이버 코드를 후킹하는게 가능한지 검증정도의 구현만 | |
// 되어있고 실제로는 이런 구현을 추가 해야 할것이다. | |
// | |
// 1. 설정에 따라 쿼리 로깅 켜고 끈다 | |
// 2. 설정에 따라 지정시간보다 느린 쿼리만 찍는다 |
Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.
The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.