<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Save log data as individual binary files]]></title><description><![CDATA[<p dir="auto">Hello! I am a very new IO Ninja user so I'm not sure of all the functionality yet so I apologies if this is something that is easily done.</p>
<p dir="auto">I am a security researcher and I'm using IO Ninja to investigate how applications are using named pipes. I would like to extract all the data sent to a named pipe from IO Ninja but I want to save the binary data into individual files that I can replay using other code I have written.</p>
<p dir="auto">I found that I save the data as txt but it's all the logs instead of individual ones. Is there any functionality that would be able to do with?</p>
]]></description><link>http://64.23.185.212/forum/topic/303/save-log-data-as-individual-binary-files</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 18:54:55 GMT</lastBuildDate><atom:link href="http://64.23.185.212/forum/topic/303.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Feb 2024 14:41:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Save log data as individual binary files on Tue, 12 Mar 2024 07:47:59 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">I think it would be a very helpful feature to add to IO ninja to just be able to save a log as a raw binary file for each direction.</p>
</blockquote>
<p dir="auto">It's very easy to achieve with a log filter/observer plugin script.</p>
<p dir="auto">However, I can't say I find it very useful to have two raw binary files containing <em>just</em> the raw bytes flowing in each directing -- how would you reconstruct the mapping between requests and replies in case of some non-trivial conversation between the client and server?</p>
<blockquote>
<p dir="auto">I often have serial port logs that I just want to save to a bin file as-is, and I end up closing IO ninja and just going back to something like CoolTerm which supports this natively.</p>
</blockquote>
<p dir="auto">If it's a uni-directional log kind of thing (e.g., your device keeps dumping debug printfs to a RS232, and you want to save it to a file) -- this can be done using <a href="https://ioninja.com/features/linking.html" rel="nofollow ugc">Session Linking</a>. Open a Serial session, open a File Stream session in Write-only mode and point it to some file, then "link" those sessions. Everything that the Serial session reads from the device, will be redirected to your file.</p>
<blockquote>
<p dir="auto">it also supports recording directly to a file, in case the computer crashes or powers off during logging</p>
</blockquote>
<p dir="auto">Actually, IO Ninja always keeps its logs in disk files. When you "Save Log", the temporary <code>.njlog</code> file simply gets copied into the file you select. But if you "Save Session", those <code>.njlog</code> files will get stored in the specified folder, and you will know exactly where to find them in case of a crash.</p>
<p dir="auto">But once again, a dedicated plugin that would explicitly save RX to one file and TX to another is quite easy to implement. I don't know, maybe we should add it to one of the upcoming releases as an official plugin (or a sample)?</p>
]]></description><link>http://64.23.185.212/forum/post/648</link><guid isPermaLink="true">http://64.23.185.212/forum/post/648</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Tue, 12 Mar 2024 07:47:59 GMT</pubDate></item><item><title><![CDATA[Reply to Save log data as individual binary files on Sat, 09 Mar 2024 23:29:51 GMT]]></title><description><![CDATA[<p dir="auto">I think it would be a very helpful feature to add to IO ninja to just be able to save a log as a raw binary file for each direction. I often have serial port logs that I just want to save to a bin file as-is, and I end up closing IO ninja and just going back to something like CoolTerm which supports this natively.</p>
<p dir="auto">(it also supports recording directly to a file, in case the computer crashes or powers off during logging)</p>
]]></description><link>http://64.23.185.212/forum/post/644</link><guid isPermaLink="true">http://64.23.185.212/forum/post/644</guid><dc:creator><![CDATA[Jeremy Herbert]]></dc:creator><pubDate>Sat, 09 Mar 2024 23:29:51 GMT</pubDate></item><item><title><![CDATA[Reply to Save log data as individual binary files on Tue, 20 Feb 2024 01:39:32 GMT]]></title><description><![CDATA[<p dir="auto">The <code>scripts</code> folder is a part of every installation package (i.e., <code>&lt;ioninja-root-dir&gt;/scripts/</code>).</p>
<p dir="auto">The scripting language is Jancy, but it's a form of a safe scripting dialect of C/C++, so you should have no problems reading it.</p>
]]></description><link>http://64.23.185.212/forum/post/621</link><guid isPermaLink="true">http://64.23.185.212/forum/post/621</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Tue, 20 Feb 2024 01:39:32 GMT</pubDate></item><item><title><![CDATA[Reply to Save log data as individual binary files on Tue, 20 Feb 2024 01:18:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for this information! Can you provide the full urls to the log_RecordFile.jnc and log_RecordCode.jnc? I couldn’t find them with google search.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://64.23.185.212/forum/uid/2">@vladimir</a> said in <a href="/forum/post/619">Save log data as individual binary files</a>:</p>
<blockquote>
<p dir="auto">Hello Dan,</p>
<p dir="auto">If you want to filter data flowing in one direction (i.e., leave TX-only or RX-only), you can apply the <a href="https://ioninja.com/plugins/tx-rx-filter.html" rel="nofollow ugc">TX/RX Filter</a>.</p>
<p dir="auto">Beware, that with the <a href="https://ioninja.com/plugins/pipe-monitor.html" rel="nofollow ugc">Pipe Monitor</a> plugin, each block of data will be visible twice (i.e., once as TX for one side of the connection, and once as RX for the other side). If you want to get rid of this duplication, you can first filter the log using the file ID (i.e., first, leave only data visible by one side of the connection) -- and then apply the TX/RX filter to leave TX-only or RX-only.</p>
<p dir="auto">And of course, you can post-process the captured <code>.njlog</code> log file in any custom way you want -- with a script written in any language of your choice. The log file format is very simple and all relevant definitions are open-source:</p>
<p dir="auto"><code>scripts/api/log_RecordFile.jnc</code><br />
<code>scripts/api/ok</code></p>
</blockquote>
]]></description><link>http://64.23.185.212/forum/post/620</link><guid isPermaLink="true">http://64.23.185.212/forum/post/620</guid><dc:creator><![CDATA[Dan King]]></dc:creator><pubDate>Tue, 20 Feb 2024 01:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to Save log data as individual binary files on Sun, 18 Feb 2024 07:51:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello Dan,</p>
<p dir="auto">If you want to filter data flowing in one direction (i.e., leave TX-only or RX-only), you can apply the <a href="https://ioninja.com/plugins/tx-rx-filter.html" rel="nofollow ugc">TX/RX Filter</a>.</p>
<p dir="auto">Beware, that with the <a href="https://ioninja.com/plugins/pipe-monitor.html" rel="nofollow ugc">Pipe Monitor</a> plugin, each block of data will be visible twice (i.e., once as TX for one side of the connection, and once as RX for the other side). If you want to get rid of this duplication, you can first filter the log using the file ID (i.e., first, leave only data visible by one side of the connection) -- and then apply the TX/RX filter to leave TX-only or RX-only.</p>
<p dir="auto">And of course, you can post-process the captured <code>.njlog</code> log file in any custom way you want -- with a script written in any language of your choice. The log file format is very simple and all relevant definitions are open-source:</p>
<p dir="auto"><code>scripts/api/log_RecordFile.jnc</code><br />
<code>scripts/api/log_RecordCode.jnc</code></p>
]]></description><link>http://64.23.185.212/forum/post/619</link><guid isPermaLink="true">http://64.23.185.212/forum/post/619</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Sun, 18 Feb 2024 07:51:34 GMT</pubDate></item></channel></rss>