jq
tl;dr çµã¿è¾¼ã¿æ¼ç®åã«ã¤ã㦠åå¤æã¯è¡ããªã + (ãã©ã¹) æ¼ç®å æ°å¤ é å æåå ãªãã¸ã§ã¯ã null - (ãã¤ãã¹) æ¼ç®å * ã¨ã / ã¨ã % ã¨ã ä»¥ä¸ tl;dr æ¨æ¥ã®æ¥è¨ã«ãã¡ãã£ã¨æ¸ãããã©ãæ¨æ¥ã¯ jq ã³ãã³ããå©ç¨ãã¦ãé åã«è¦ç´ ã追å ããæ¹æ³â¦
è¿½è¨ (2021/01/23) gdb 㧠strflocaltime é¢æ°ã®å¦çã追ã ã¯ããã« strflocaltime é¢æ°ã strftime é¢æ° ããã¥ã¡ã³ããã UNIX TIME ã ã¨ãã±ã£ã¨è¦ããããªã ä»¥ä¸ ãã¾ã ã jq ã½ã¼ã¹ã³ã¼ããªã¼ãã£ã³ã° ã è¿½è¨ (2021/01/23) gdb 㧠strflocaltime é¢â¦
ä¾ãã° ããã¥ã¡ã³ããè¦ã ã¨ãããã¨ã§ åè ä¾ãã° Elasticsearch ã® Index Mapping ã確èªãããå ´åã curl -s localhost:9200/debug-2017.06.23/_mapping 以ä¸ã®ãããªã¬ã¹ãã³ã¹ãè¿ã£ã¦ããã { "debug-2017.06.23": { "mappings": { "debug-apilog"â¦
ãã® JSON ã⦠ã¨ãããã¨ã§ãä¸æ¬ ããã£ãã ãã® JSON ã⦠{ "query": { "bool": { "must": [ { "term": { "name": "name" } }, { "term": { "description": "keyword" } }, { "term": { "address": "location" } } ] } } } ä¸è¡ã§æ¬²ããæãããã ã¨ãâ¦
ãã®ãã ä¸æ¬ ãããã¨ããããã¾ããï¼ ãã®ãã 以ä¸ã®ãã㪠JSON ã®é åãããä»»æã®ç¯å²ãæå®ãã¦ãã¼ã¿ãåå¾ãããã [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ] ä¾ãã°ãæå¾ã® 8 ã 0 ã ãåãããã¨æã£ãã¨ããã ä¸æ¬ 以ä¸ã®ãããªæãã§ã¤ã±ãã $ caâ¦
ãã®ãã ä¸æ¬ï¼ ãããã¨ããããã¾ããï¼ ãã®ãã CloudWatch Logs Agent ã®è¨å®ãããã°ã£ã¦ããã¡ããã¨ãã°ã転éããã¦ãããã¨ã確èªããããããããAWS CLI ã§ã ä¸æ¬ï¼ ä¾ãã°ããã°ã°ã«ã¼ãã oreno-dev-app ã¨ãããã°ã°ã«ã¼ãã«ãã°ãé£ã°ããâ¦
tl;dr æ¸ãã¦ãããªãã¨å¿ããå¹´é½¢ã«ãªã£ã¦ããã®ã§ã¡ã¢ã£ã¦ããã å®è¡ç°å¢ã«ã¤ãã¦ã¯ãç¹ã«æãããªãå ´åã«ã¯ä»¥ä¸ã®ç°å¢ã§è©¦ãã¦ããã % sw_vers ProductName: Mac OS X ProductVersion: 10.11.4 BuildVersion: 15E65 % aws --version aws-cli/1.10.26 Pâ¦
ã¯ããã« ã¨ããããã¡ã¢ åè jq Manual 軽éJSONãã¼ãµã¼ãjqãã®ããã¥ã¡ã³ãï¼ãjq Manualãããã£ããæ¥æ¬èªè¨³ãã¦ã¿ã¾ãã AWS CLI aws-cli ãã¼ãã·ã¼ã ã¤ã³ã¹ã¿ã³ã¹ã®æ å ±ãåå¾ï¼1ï¼ ã¤ã³ã¹ã³ã¿ã³ã¹ã¸ ssh ã§ã¢ã¯ã»ã¹ããã®ã«å¿ è¦ãªæ å ±ãåå¾ããâ¦
ã¯ããã« Debian 6(squeeze) 㧠jq ã使ãéã®ã¡ã¢ ã¡ã¢ ã¤ã³ã¹ãã¼ã« ããããå°å ¥ã§èºãããjq 㯠Unstable æ±ãã¨ãªã£ã¦ããæ®éã« apt-get ã§ã¯ã¤ã³ã¹ãã¼ã«åºæ¥ãªãããããã±ã¼ã¸ã ããã¦ã³ãã¼ããã¦... dpkg -i jq_1.3-1_amd64.deb ã§ã¤ã³ã¹ãã¼ã«ãâ¦
ã¯ããã« docker 㨠CI ãã¼ã«ã使ã£ããã¹ãç°å¢æ§ç¯äºä¾ãè²ã ã¨åºã¦ãã¦ãã¦ã¨ã«ãã楽ããã docker 㨠jenkins ã使ã£ãæ§ç¯äºä¾ã¯ããã®ã§ altria ã§è©¦ãã¦ã¿ããã¨ã«ãã ç¹å®ã®ç°å¢ã«ç¹åãããã¹ãç°å¢ã§ã¯ãªããè²ã ãªãã¹ãã«å©ç¨åºæ¥ããããªç°â¦
ã¯ããã« æ¨æ¥ã® Fluentd Casual Talks #3 㧠@kzk_mover ãããç´¹ä»ããã¦ããç£è¦ã¨ã¼ã¸ã§ã³ãã«ã¤ãã¦è§¦ã£ã¦ã¿ãã以ä¸ã¯ @kzk_mover ããã®è³æã Treasure Agent Monitoring Service (ãã¼ã¿) from Treasure Data, Inc. ããã¥ã¡ã³ããåè Fluentdã®ç£â¦