{"id":452,"date":"2020-02-07T20:37:15","date_gmt":"2020-02-07T17:37:15","guid":{"rendered":"http:\/\/microimpuls.com\/docs\/micropvr\/%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d0%b8-%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5\/%d0%bb%d0%be%d0%b3%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5"},"modified":"2020-04-21T00:39:20","modified_gmt":"2020-04-20T21:39:20","slug":"logging","status":"publish","type":"docs","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/logging","title":{"rendered":"Logistics"},"content":{"rendered":"<h2 class=\"wp-block-heading\">The main log file of the micropvr process<\/h2>\n\n\n\n<p><code>\/var\/log\/micropvr\/micropvr.log<\/code> \u2014 the main log file. The messages are as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">%timestamp%log level%module%function%%PID%(%message code%)%message text%<\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Tue Mar 14 06:31:21 2017 DEBUG RECORDS MANAGER CheckWritingFilesSizes[18527]: file size check: ch_id-76_time-1489462267_task_id-962839 - 0 bytes<\/pre>\n\n\n\n<p>Possible message levels in order of increasing log detail (each level includes previous levels):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>CRITICAL \u2014 critical errors that directly affect the operation of the micropvr process: process copying errors, database entries, etc.<\/li><li>ERROR &amp; #8212; significant errors: configuration reading errors, space shortage messages, etc.<\/li><li>WARNING \u2014 Warnings: API call errors, task restart messages due to error, etc.<\/li><li>INFO \u2014 newsletters.<\/li><li>DEBUG &amp; #8212; minor messages useful for debugging.<\/li><li>EXTENDED &amp; #8212; access to the database.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Micropvr state log<\/h2>\n\n\n\n<p>If the parameter <code>log-state-period<\/code> more <strong>0<\/strong>, then micropvr with a given frequency in minutes will keep the state log <code>\/var\/log\/micropvr\/micropvr_state.log<\/code>.<\/p>\n\n\n\n<p>View of log records:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Log OK: 12\/10 13:28:59\nMem used: 958868 KiB, mem free: 3099672 KiB\nSwap used: 127652 KiB, swap free: 8257880 KiB\nCPU LA1: 0.5\nContent requests: 0 requests in 59 seconds, 0.0 per second\nSuccessful requests: 0 requests in 59 seconds, 0.0 per second\n\n_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n| CID | CHANNEL NAME | SOURCE | START TIME | STOP TIME | LOCK TIME | REPEAT | LOCATION | PRIOR | STATUS |\n\u2014---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n| 1 | channel1 | udp:\/\/ @239.1.2.3:1234 | 12\/10 15:00:00 | 12\/10 16:00:00 | 13\/10 16:00:00 | 3600 secs | \/tmp\/pvr\/ch_1 | 3 | NEW|\n| 2 | channel2 | udp:\/\/ @239.1.2.3:1235 | 12\/10 15:00:00 | 12\/10 16:00:00 | 13\/10 16:00:00 | 3600 secs | \/tmp\/pvr\/ch_2 | 3 | NEW|\n| 3 | channel3 | udp:\/\/ @239.1.2.3:1236 | 12\/10 13:00:00 | 12\/10 14:00:00 | 14\/10 14:00:00 | 3600 secs | \/tmp\/pvr\/ch_3 | 3 | STARTED |\n| 3 | channel3-sd | udp:\/\/ @239.1.2.3:1236 | 12\/10 13:00:00 | 12\/10 14:00:00 | 14\/10 14:00:00 | 3600 secs | \/ssd\/pvr\/ch_3 | 5 | STARTED |\n| 4 | channel4 | udp:\/\/ @239.1.2.3:1236 | 12\/10 13:29:10 | 12\/10 14:00:00 | 14\/10 14:00:00 | 3600 secs | \/ssd\/pvr\/ch_4 | 5 | POSTPONED |\n| 5 | channel5 | udp:\/\/ @239.1.2.3:1240 | 12\/10 14:20:00 | 12\/10 17:20:00 | 15\/10 17:20:00 | no repeat | \/ssd\/pvr\/ch_5 | 5 | NEW|\n________________________________________________________________________________________________________________________________________________________________________\n| PATH | FREE SPACE | RESERVED | AVAILABLE |\n\u2014---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n| \/ | 393849 MiB | 30000 MiB | 363849 MiB |\n| \/ssd | 128350 MiB | 30000 MiB | 98350 MiB |\n<\/pre>\n\n\n\n<p>Task table fields:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>CID &amp; #8212; channel identifier specified when creating the task.<\/li><li>CHANNEL NAME &amp; #8212; channel name given when creating the task.<\/li><li>SOURCE \u2014 source of the recording.<\/li><li>START TIME \u2014 actual start time of recording (in server time zone).<\/li><li>STOP TIME &amp; #8212; End time (in server time zone).<\/li><li>LOCK TIME \u2014 the time before which automatic deletion of a record is blocked (in the server time zone).<\/li><li>REPEAT &amp; #8212; the task repetition period may not coincide with the actual recording duration. If a new task has already been established, it is indicated <strong>repeated<\/strong>if the task is non-periodic, it is indicated <strong>no, no. no, no. no. no. no. no. no. no<\/strong>.<\/li><li>LOCATION \u2014 directory recording.<\/li><li>PRIOR &amp; #8212; Record priority. When you request offset and file will be given a record with high priority.<\/li><li>Status &amp; #8212; status of the task.<\/li><\/ul>\n\n\n\n<p>Possible statuses:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>NEW &amp; #8212; the task has not yet started and is on the waiting list.<\/li><li>POSTPONED &amp; #8212; similar to NEW, but the task was restarted due to an error.<\/li><li>STARTING &amp; #8212; the task is in the process of being launched.<\/li><li>FAILED &amp; #8212; task execution error.<\/li><li>STARTED &amp; #8212; the task is in progress, recording is done.<\/li><li>UNKNOWN &amp; #8212; other status.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Log recorder<\/h2>\n\n\n\n<p><code>recorder<\/code> \u2014 additional log file of recorder processes. Activated by option <code>recorder<\/code> in a micropvr configuration. The messages are as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">%timestamp%log level%function%[%PID%](%message code%)%message text%<\/pre>","protected":false},"featured_media":0,"parent":449,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-452","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/logging\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\" \/>\n<meta property=\"og:description\" content=\"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 micropvr \/var\/log\/micropvr\/micropvr.log &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u043b\u043e\u0433\u0430. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u044e\u0442 \u0432\u0438\u0434: %timestamp% %log level% %module% %function% [%PID%] (%message code%) %message text% \u041f\u0440\u0438\u043c\u0435\u0440: Tue Mar 14 06:31:21 2017 DEBUG RECORDS MANAGER CheckWritingFilesSizes[18527]: file size check: ch_id-76_time-1489462267_task_id-962839 - 0 bytes \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u043b\u043e\u0433\u0430 (\u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u0438): [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/logging\/\" \/>\n<meta property=\"og:site_name\" content=\"Microimpuls\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-20T21:39:20+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging\",\"url\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging\",\"name\":\"\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\",\"isPartOf\":{\"@id\":\"https:\/\/micro.im\/#website\"},\"datePublished\":\"2020-02-07T17:37:15+00:00\",\"dateModified\":\"2020-04-20T21:39:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/micro.im\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MicroPVR\",\"item\":\"https:\/\/microimpuls.com\/docs\/micropvr\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\",\"item\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/micro.im\/#website\",\"url\":\"https:\/\/micro.im\/\",\"name\":\"Microimpuls\",\"description\":\"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f OTT \u0438 IPTV\",\"publisher\":{\"@id\":\"https:\/\/micro.im\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/micro.im\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/micro.im\/#organization\",\"name\":\"Microimpuls\",\"url\":\"https:\/\/micro.im\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"contentUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"width\":208,\"height\":219,\"caption\":\"Microimpuls\"},\"image\":{\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logistics","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/logging\/","og_locale":"en_US","og_type":"article","og_title":"\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","og_description":"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 micropvr \/var\/log\/micropvr\/micropvr.log &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u043b\u043e\u0433\u0430. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u044e\u0442 \u0432\u0438\u0434: %timestamp% %log level% %module% %function% [%PID%] (%message code%) %message text% \u041f\u0440\u0438\u043c\u0435\u0440: Tue Mar 14 06:31:21 2017 DEBUG RECORDS MANAGER CheckWritingFilesSizes[18527]: file size check: ch_id-76_time-1489462267_task_id-962839 - 0 bytes \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u043b\u043e\u0433\u0430 (\u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u0438): [&hellip;]","og_url":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/logging\/","og_site_name":"Microimpuls","article_modified_time":"2020-04-20T21:39:20+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging","url":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging","name":"Logistics","isPartOf":{"@id":"https:\/\/micro.im\/#website"},"datePublished":"2020-02-07T17:37:15+00:00","dateModified":"2020-04-20T21:39:20+00:00","breadcrumb":{"@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/logging#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/micro.im\/"},{"@type":"ListItem","position":2,"name":"MicroPVR","item":"https:\/\/microimpuls.com\/docs\/micropvr"},{"@type":"ListItem","position":3,"name":"\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435","item":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use"},{"@type":"ListItem","position":4,"name":"\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435"}]},{"@type":"WebSite","@id":"https:\/\/micro.im\/#website","url":"https:\/\/micro.im\/","name":"Microimpulses","description":"Comprehensive solutions for OTT and IPTV","publisher":{"@id":"https:\/\/micro.im\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/micro.im\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/micro.im\/#organization","name":"Microimpulses","url":"https:\/\/micro.im\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/","url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","contentUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","width":208,"height":219,"caption":"Microimpuls"},"image":{"@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":3,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/452\/revisions"}],"predecessor-version":[{"id":961,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/452\/revisions\/961"}],"up":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/449"}],"next":[{"title":"Possible error codes and messages in logs","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/error-codes-and-log-messages","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/454"}],"prev":[{"title":"Load balancing","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/load-balancing","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/451"}],"wp:attachment":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/doc_tag?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}