<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF Cloud Log backend (REST API) not pushing logs to cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126736/nrf-cloud-log-backend-rest-api-not-pushing-logs-to-cloud</link><description>I&amp;#39;m trying to configure the nRF cloud log backend to aid with debugging of devices during field tests without the need for bulky UART harnesses to capture logs from the serial output of the board. Relevant prj.conf excerpts below: ``` CONFIG_LOG=y CONFIG_LOG_PROCESS_THREAD</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Feb 2026 15:27:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126736/nrf-cloud-log-backend-rest-api-not-pushing-logs-to-cloud" /><item><title>RE: nRF Cloud Log backend (REST API) not pushing logs to cloud</title><link>https://devzone.nordicsemi.com/thread/560472?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2026 15:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a629e11-e2c9-4844-9c79-9ac0281acb29</guid><dc:creator>Redrield</dc:creator><description>&lt;p&gt;Thank you, I think this was the final piece of the puzzle, the system seems to be stable and working now. Will report back if I run into any more issues&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Cloud Log backend (REST API) not pushing logs to cloud</title><link>https://devzone.nordicsemi.com/thread/560468?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2026 15:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb305e1-8bd7-49a7-98f1-1f180e1070d8</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your logs. The secure fault in strlen() from the logging thread suggests that an invalid string pointer is being accessed. In the snippet you shared, both device_id and the REST context ctx are defined as local (stack) variables. Since the cloud log backend runs asynchronously in its own thread, it may continue to use these pointers after the initialization code has completed, at which point the memory is no longer valid.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please try making the REST context and the device_id buffer persistent (for example static or global) and then retest? For example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static uint8_t rx_buf[2048];
static struct nrf_cloud_rest_context ctx = {
    .connect_socket = -1,
    .keep_alive = true,
    .timeout_ms = 10000,
    .auth = NULL,
    .rx_buf = rx_buf,
    .rx_buf_len = sizeof(rx_buf),
};

static char device_id[128];

void cloud_log_setup(void)
{
    char imei[32] = {0};

    modem_info_string_get(MODEM_INFO_IMEI, imei, sizeof(imei));
    snprintk(device_id, sizeof(device_id), &amp;quot;nrf-%s&amp;quot;, imei);

    nrf_cloud_log_rest_context_set(&amp;amp;ctx, device_id);
    nrf_cloud_log_init();
    nrf_cloud_log_enable(true);
    nrf_cloud_log_level_set(3);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If the issue persists after this change, please let us know the NCS version you’re using and share the back trace so we can investigate further.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Cloud Log backend (REST API) not pushing logs to cloud</title><link>https://devzone.nordicsemi.com/thread/560377?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 18:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97d1383-060d-42d8-b766-c1757e650f50</guid><dc:creator>Redrield</dc:creator><description>&lt;p&gt;Hi Syed,&lt;br /&gt;&lt;br /&gt;Adjusted the kconfigs as you suggested, and have gotten it to the point where the board is boot looping due to a crash in strlen originating in the logging thread. I can get the full backtrace from the debugger if that would be helpful&lt;br /&gt;&lt;br /&gt;Logging related kconfigs:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_LOG_PROCESS_THREAD=y
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=6144
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=5
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_NRF_CLOUD_CLIENT_ID_SRC_IMEI=y
CONFIG_NRF_CLOUD_REST=y
CONFIG_NRF_CLOUD_REST_AUTOGEN_JWT=y
CONFIG_NRF_CLOUD_LOG_DIRECT=y
CONFIG_NRF_CLOUD_LOG_BACKEND=y
CONFIG_LOG_BACKEND_NRF_CLOUD_OUTPUT_TEXT=y
CONFIG_NRF_CLOUD_LOG_OUTPUT_LEVEL=3
CONFIG_NRF_CLOUD_LOG_RING_BUF_SIZE=4096
CONFIG_LOG_MODE_DEFERRED=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Initialization code (This happens immediately after the device registers on a cellular network)&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;        struct nrf_cloud_rest_context ctx = {
            .connect_socket = -1,
            .keep_alive = true,
            .timeout_ms = 10000,
            .auth = NULL,
            .rx_buf = rx_buf,
            .rx_buf_len = 2048,
        };

        char imei[128];
        char device_id[128];
        modem_info_string_get(MODEM_INFO_IMEI, imei, sizeof(imei));
          LOG_INF(&amp;quot;Got imei %s&amp;quot;, imei);
        snprintf(device_id, sizeof(device_id), &amp;quot;nrf-%s&amp;quot;, imei);
        nrf_cloud_log_rest_context_set(&amp;amp;ctx, device_id);

        nrf_cloud_log_init();
        nrf_cloud_log_enable(true);
        nrf_cloud_log_level_set(3);
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The kernel panic message originating in the logging thread&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:11.516,662] &amp;lt;err&amp;gt; nrf_cloud_log_backend: Error -12 ret 0 processing ring buffer
[00:00:11.516,662] &amp;lt;inf&amp;gt; nrf_cloud_log_backend: Sent lines:4, bytes:490
[00:00:11.582,672] &amp;lt;err&amp;gt; os: ***** SECURE FAULT *****
[00:00:11.582,702] &amp;lt;err&amp;gt; os:   Address: 0x1
[00:00:11.582,702] &amp;lt;err&amp;gt; os:   Attribution unit violation
[00:00:11.582,733] &amp;lt;err&amp;gt; os: r0/a1:  0x00000001  r1/a2:  0x20018e14  r2/a3:  0x00000000
[00:00:11.582,763] &amp;lt;err&amp;gt; os: r3/a4:  0x00000001 r12/ip:  0x0000024c r14/lr:  0x0002e0f5
[00:00:11.582,794] &amp;lt;err&amp;gt; os:  xpsr:  0x81000000
[00:00:11.582,824] &amp;lt;err&amp;gt; os: s[ 0]:  0x40015000  s[ 1]:  0x00000000  s[ 2]:  0x0005c220  s[ 3]:  0x00000000
[00:00:11.582,824] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x40015000  s[ 6]:  0x00000000  s[ 7]:  0x00026f69
[00:00:11.582,855] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00026ead  s[10]:  0x000434bc  s[11]:  0x00000020
[00:00:11.582,885] &amp;lt;err&amp;gt; os: s[12]:  0x000370a1  s[13]:  0x20013554  s[14]:  0x00000000  s[15]:  0x00000000
[00:00:11.582,885] &amp;lt;err&amp;gt; os: fpscr:  0x00000008
[00:00:11.582,916] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00018d42
[00:00:11.582,946] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 41: Unknown error on CPU 0
[00:00:11.582,977] &amp;lt;err&amp;gt; os: Current thread: 0x2000d6d8 (unknown)
[00:00:11.709,259] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Cloud Log backend (REST API) not pushing logs to cloud</title><link>https://devzone.nordicsemi.com/thread/559938?ContentTypeID=1</link><pubDate>Thu, 29 Jan 2026 15:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d57050-c1b7-4ffa-8622-f0a194ea9a5d</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the update. The “messages dropped” message means logs are being produced faster than the logging system can send them. With REST-based cloud logging, this can happen if uploads are slow or the logging thread does not run often enough, and cloud logs will usually stop before UART output. One thing to check is CONFIG_LOG_PROCESS_THREAD_SLEEP_MS. Can you try reducing it to 100ms (or similar smaller value):&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If the issue persists, please share your NCS version and the logging related Kconfigs.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Cloud Log backend (REST API) not pushing logs to cloud</title><link>https://devzone.nordicsemi.com/thread/559815?ContentTypeID=1</link><pubDate>Wed, 28 Jan 2026 16:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:377fea67-d8cc-4c3c-9fb5-155dc355a0ea</guid><dc:creator>Redrield</dc:creator><description>&lt;p&gt;Hi Syed,&lt;br /&gt;&lt;br /&gt;Thank you. This is what I was looking for, enabling the cloud logging with that has gotten it pushing to the cloud dashboard successfully.&lt;br /&gt;&lt;br /&gt;One problem I&amp;#39;m noticing is that the logging backend seems rather fragile. Sometimes it will work fine, other times, on the same device/same firmware, it will encounter some error, or need to drop messages, and after that point log output will be cut off both over UART and over the cloud (No new data is displayed).&lt;br /&gt;&lt;br /&gt;I found that increasing buffer sizes helped with this, setting CONFIG_LOG_BUFFER_SIZE=2048 and CONFIG_NRF_CLOUD_LOG_RING_BUF_SIZE=4096 got it working for longer, but it still ends up dying unacceptably often. Is there some other solution that would improve this behaviour? Would moving to logging over MQTT help?&lt;br /&gt;&lt;br /&gt;For reference, this is what the UART output looks like around the time the logging backend dies:&lt;br /&gt;&lt;br /&gt;(Logs coming from our firmware, content irrelevant)&lt;br /&gt;&lt;code&gt;[00:00:46.178,131] &amp;lt;inf&amp;gt; ...&lt;br /&gt;[00:00:46.179,992] &amp;lt;inf&amp;gt; ...&lt;br /&gt;&lt;br /&gt;[00:00:46.183,074] &amp;lt;inf&amp;gt; ...&lt;br /&gt;[00:00:52.178,100] &amp;lt;inf&amp;gt; ...&lt;br /&gt;&lt;br /&gt;--- 16 messages dropped ---&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;(No messages received, let the device continue running for a couple minutes after this occurred. Expected log output is ~2-3 lines each second)&lt;br /&gt;&lt;br /&gt;Cloud logs also trail off prior to this occurring.&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Cloud Log backend (REST API) not pushing logs to cloud</title><link>https://devzone.nordicsemi.com/thread/559767?ContentTypeID=1</link><pubDate>Wed, 28 Jan 2026 10:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:992fffaa-f405-497a-9b72-c4aab0f8da65</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks that your backend is present and running however not enabled. For&amp;nbsp;REST-based nRF Cloud logging, the log subsystem is not automatically enabled at runtime. So could you please try explicitly initializing and enabling it after LTE is connected and date time library is ready (&lt;a href="http://docs.nordicsemi.com/bundle/nrf-apis-latest/page/group_nrf_cloud_log.html"&gt;nRF Cloud Log API&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_cloud_log_init();
nrf_cloud_log_enable(true);
nrf_cloud_log_level_set(3);   /* or 4 for DBG */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also, please ensure the device ID passed to nrf_cloud_log_rest_context_set() matches the actual onboarded device ID in nRF Cloud. Let us know if you start seeing any sent data. If not, please share the NCS version you are using along with a minimal reproducible source code snippet and prj.conf, so we can test this on our side.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>