{"id":126396,"date":"2024-11-22T10:13:27","date_gmt":"2024-11-22T01:13:27","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=126396"},"modified":"2024-11-22T10:13:27","modified_gmt":"2024-11-22T01:13:27","slug":"lnav","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/lnav\/","title":{"rendered":"lnav - \u300ctail -f\u300d\u3067\u6d88\u8017\u3057\u305f\u304f\u306a\u3044\u65b9\u5fc5\u898b\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u7528\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u30d3\u30e5\u30fc\u30a2\u30fc"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/11\/s_20241121_115816.jpg\" alt=\"\" width=\"900\" height=\"560\" class=\"aligncenter size-full wp-image-126397\" \/><\/p>\n<p>Web\u30b5\u30fc\u30d0\u30fc\u3084DB\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u304c\u66f8\u304d\u51fa\u3059\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u95b2\u89a7\u3059\u308b\u969b\u3001\u300ctail -f\u300d\u3092\u4f7f\u3063\u3066\u76e3\u8996\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u65b9\u306f\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u300ctail -f\u300d\u306f\u30ed\u30b0\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u8efd\u91cf\u304b\u3064\u30b7\u30f3\u30d7\u30eb\u306a\u65b9\u6cd5\u3067\u3059\u304c\u3001\u6a5f\u80fd\u306f\u591a\u304f\u3042\u308a\u307e\u305b\u3093\u3067\u3059\u3002\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/lnav.org\/\">lnav<\/a>\u300d\u306f\u3053\u308c\u3092\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u52b9\u7387\u7684\u306a\u30ed\u30b0\u95b2\u89a7\u30fb\u89e3\u6790\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>lnav\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u6b21\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u8907\u6570\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u7d71\u5408\u30d3\u30e5\u30fc<\/strong>: \u8907\u6570\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u9806\u306b\u7d71\u5408\u3057\u3066\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<li><strong>\u81ea\u52d5\u30ed\u30b0\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u691c\u51fa<\/strong>: Apache\u3001Nginx\u3001syslog\u3001JSON\u5f62\u5f0f\u306a\u3069\u3001\u4e00\u822c\u7684\u306a\u30ed\u30b0\u5f62\u5f0f\u3092\u81ea\u52d5\u3067\u8a8d\u8b58\u3002\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3082\u8a2d\u5b9a\u53ef\u80fd\u3002<\/li>\n<li><strong>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u66f4\u65b0<\/strong>: \u30d5\u30a1\u30a4\u30eb\u304c\u66f4\u65b0\u3055\u308c\u308b\u3068\u81ea\u52d5\u7684\u306b\u53cd\u6620\u3055\u308c\u308b\u306e\u3067\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u53ef\u80fd\u3002<\/li>\n<li><strong>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<\/strong>: vim\u98a8\u306e\u30ad\u30fc\u30d0\u30a4\u30f3\u30c9\u3067\u64cd\u4f5c\u53ef\u80fd\u3002<\/li>\n<li><strong>\u5f37\u529b\u306a\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3068\u691c\u7d22\u6a5f\u80fd<\/strong>: \u6b63\u898f\u8868\u73fe\u3084\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u3092\u691c\u7d22\u3002\u7279\u5b9a\u306e\u6761\u4ef6\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3082\u53ef\u80fd\u3002<\/li>\n<li><strong>SQL\u30af\u30a8\u30ea\u6a5f\u80fd<\/strong>: SQLite\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30c7\u30fc\u30bf\u306b\u76f4\u63a5SQL\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u53ef\u80fd\u3002<\/li>\n<li><strong>\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u306e\u6b63\u898f\u5316<\/strong>: \u7570\u306a\u308b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3046\u3084\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u6b63\u898f\u5316\u3067\u304d\u308b\u3002<\/li>\n<li><strong>\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5bfe\u5fdc<\/strong>: Linux\u3001macOS\u3001FreeBSD\u306a\u3069\u3001Unix\u7cfb\u30b7\u30b9\u30c6\u30e0\u3067\u52d5\u4f5c\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>lnav\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>lnav\u306fUNIX\u7cfbOS\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Linux:<\/p>\n<pre>\r\n# snap\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\nsudo snap install lnav\r\n\r\n# yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\ncurl -s https:\/\/packagecloud.io\/install\/repositories\/tstack\/lnav\/script.rpm.sh | sudo bash\r\nsudo yum install lnav\r\n<\/pre>\n<p>macOS:<\/p>\n<pre>\r\n# Homebrew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\nbrew install lnav\r\n\r\n# MacPorts\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\nsudo port install lnav\r\n<\/pre>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u8a73\u7d30\u306f<a href=\"https:\/\/lnav.org\/downloads\">\u3053\u3061\u3089<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089<code>lnav \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u540d<\/code>\u3068\u5b9f\u884c\u3057\u307e\u3059\u3002\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306fsyslog\u304c\u958b\u304b\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/11\/s_20241121_131530.jpg\" alt=\"\" width=\"900\" height=\"560\" class=\"aligncenter size-full wp-image-126398\" \/><\/p>\n<p>\u25b2\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304c\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u3066\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u8868\u793a\u306f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u66f4\u65b0\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u304c\u3001<code>j<\/code>\u3001<code>k<\/code>\u3001<code>g<\/code>\u3001<code>G<\/code>\u306a\u3069\u306evim\u98a8\u306e\u30ad\u30fc\u3092\u4f7f\u3063\u3066\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u30ca\u30d3\u30b2\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>\/<\/code>\u3092\u4f7f\u3063\u3066\u691c\u7d22\u3057\u305f\u308a\u3001<code>e<\/code>\u3084<code>w<\/code>\u3067\u30a8\u30e9\u30fc\u3084\u8b66\u544a\u3092\u63a2\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306b\u3082\u3055\u307e\u3056\u307e\u306a\u4fbf\u5229\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u8a73\u7d30\u306f<a href=\"https:\/\/docs.lnav.org\/en\/v0.12.3\/\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001lnav\u306b\u306f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c7\u30e2\u304c\u5b58\u5728\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u304f\u3066\u3082ssh\u304c\u3042\u308c\u3070\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\nssh playground@demo.lnav.org\r\n<\/pre>\n<p>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\nssh tutorial1@demo.lnav.org\r\n<\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>lnav\u3092\u5229\u7528\u3059\u308c\u3070\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u52b9\u7387\u7684\u306b\u30ca\u30d3\u30b2\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300ctail -f\u300d\u306b\u4e0d\u6e80\u3092\u6301\u3063\u3066\u3044\u305f\u65b9\u306f\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<table>\n<tr>\n<th rowspan='4' style='white-space: nowrap;'><img decoding=\"async\" style=\"max-width: 52px; height: auto;\" src=\"https:\/\/softantenna.com\/uploads\/software\/7800\/i_screenshot1.jpg\" \/><\/th>\n<th style='white-space: nowrap;'>\u30bf\u30a4\u30c8\u30eb<\/th>\n<td>lnav<\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u516c\u5f0f\u30b5\u30a4\u30c8<\/th>\n<td><a href=\"https:\/\/lnav.org\/\">https:\/\/lnav.org\/<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u30bd\u30d5\u30c8\u30a2\u30f3\u30c6\u30ca<\/th>\n<td><a href=\"https:\/\/softantenna.com\/softwares\/7800-lnav\">https:\/\/softantenna.com\/softwares\/7800-lnav<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u8aac\u660e<\/th>\n<td>\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u52b9\u7387\u7684\u306b\u76e3\u8996\u30fb\u30ca\u30d3\u30b2\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3002<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Web\u30b5\u30fc\u30d0\u30fc\u3084DB\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u304c\u66f8\u304d\u51fa\u3059\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u95b2\u89a7\u3059\u308b\u969b\u3001\u300ctail -f\u300d\u3092\u4f7f\u3063\u3066\u76e3\u8996\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u65b9\u306f\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u300ctail -f\u300d\u306f\u30ed\u30b0\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u8efd\u91cf\u304b\u3064\u30b7\u30f3\u30d7\u30eb\u306a\u65b9\u6cd5 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":126397,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[4774],"class_list":["post-126396","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-logfile"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/126396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=126396"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/126396\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/126397"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=126396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=126396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=126396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}