# Reading the Edge-Agent Data buffer

**URL:** <https://forums.losant.com/t/reading-the-edge-agent-data-buffer/2497>\
**Category:** Help\
**Tags:** edge\
**Created:** [December 23, 2019, 11:58am UTC](https://forums.losant.com/t/reading-the-edge-agent-data-buffer/2497 "2019-12-23T11:58:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Cossio](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Diego\_Cossio](https://forums.losant.com/u/Diego_Cossio)\
**Post date:** [December 23, 2019, 11:58am UTC](https://forums.losant.com/t/reading-the-edge-agent-data-buffer/2497/1 "2019-12-23T11:58:06Z")

</div>

Hello,  
I have an edge-agent running on a Raspberry Pi. I have mounted a directory on the host to be able to access the Docker container data. I can see on my host file system that some files with extension .ldb have been created among others (LOG, MANIFESTO, CURRENT, LOCK). My question is (sorry if it is a bit obvious), how can I read/open the files to see the data that has been stored in the files when a disconnection occurs ? Do I need a particular software?  
Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [December 23, 2019, 8:10pm UTC](https://forums.losant.com/t/reading-the-edge-agent-data-buffer/2497/2 "2019-12-23T20:10:06Z")

</div>

Hi @Diego_Cossio,

I have not personally accessed these files, but there are some useful articles with walkthroughs on how to open them. The simplest explanation I found was to open them in Notepad, but here are a couple of links:

> **[Description of .LDB File - Office](https://docs.microsoft.com/en-us/office/troubleshoot/access/ldb-file-description)**
>
> Describes LDB files that are Microsoft Access lock information files.

  

> **[How to Open an LDB File in Windows 7](https://smallbusiness.chron.com/open-ldb-file-windows-7-63711.html)**
>
> Microsoft Access, available as part of Microsoft Office, allows business owners to manage their databases and develop software applications. Prior to 2007, Access saved certain database information in files with an .ldb extension. An LDB file, also...

Please let me know if I can assist further!

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![Diego\_Cossio](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Diego\_Cossio](https://forums.losant.com/u/Diego_Cossio)\
**Post date:** [December 24, 2019, 10:45am UTC](https://forums.losant.com/t/reading-the-edge-agent-data-buffer/2497/3 "2019-12-24T10:45:47Z")

</div>

Hi @JuliaKempf,  
Thanks for the info. It looks like these .ldb files are just to keep track of who access the database. I wonder where the data (in my case the, the flow, temperature and pressure readings from the sensors) are stored when a disconnection occurs?? Is it in the log files?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [January 3, 2020, 3:06pm UTC](https://forums.losant.com/t/reading-the-edge-agent-data-buffer/2497/5 "2020-01-03T15:06:43Z")

</div>

Hi @Diego_Cossio,

Within an edge workflow, you could begin with a [Timer Trigger Node](https://docs.losant.com/workflows/triggers/timer/) and occasionally check your edge device connection variable. Then, using a [Latch Node](https://docs.losant.com/workflows/logic/latch/) or a [Conditional Node](https://docs.losant.com/workflows/logic/conditional/) to route the workflow to a [File: Read Node](https://docs.losant.com/workflows/data/file-read/) (if the device is no longer connected) to view or access the logs in the workflow.

Please let me know if I can explain further!

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![Diego\_Cossio](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Diego\_Cossio](https://forums.losant.com/u/Diego_Cossio)\
**Post date:** [January 7, 2020, 8:09am UTC](https://forums.losant.com/t/reading-the-edge-agent-data-buffer/2497/7 "2020-01-07T08:09:01Z")

</div>

Hi @JuliaKempf,

Thank you very much for the advice. At the moment I have remote access to the edge device, so I can extract the log files manually, but your suggested method is an excellent way to gain access to the log files within the workflow environment.
