﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>LogViewPlus Support » LogViewPlus Support » Help &amp; Support  » Is it possible to use text filters for "adjacent lines"? As text "AB" has to be found 2 lines above text "CD"</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Sun, 19 Apr 2026 15:09:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Is it possible to use text filters for "adjacent lines"? As text "AB" has to be found 2 lines above text "CD"</title><link>https://www.logviewplus.com/forum/post/1741</link><description>I was wondering, if something similar could be possible with regex or maybe SQL filter</description><pubDate>Sun, 23 Apr 2023 13:35:01 GMT</pubDate><dc:creator>Philer</dc:creator></item><item><title>RE: Is it possible to use text filters for "adjacent lines"? As text "AB" has to be found 2 lines above text "CD"</title><link>https://www.logviewplus.com/forum/post/1744</link><description>I took a quick look into implementing the Lag function.&amp;nbsp; Unfortunately, there are a few technical issues and I don't think it would be a good fit at this time.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;What I would like to do instead is consider the other &lt;a href="https://www.logviewplus.com/forum/1740/Is-it-possible-to-group-log-lines-to-blocksgroups-where-I-can-search-in" id="if_insertedNode_1682256536361"&gt;&lt;/a&gt;&lt;a href="https://www.logviewplus.com/forum/1740/Is-it-possible-to-group-log-lines-to-blocksgroups-where-I-can-search-in" id="if_insertedNode_1682256549916"&gt;issue you raised&lt;/a&gt;.&amp;nbsp; &amp;nbsp;I think LogViewPlus could do a better job of filtering groups of log entries in a single operation.&amp;nbsp; A lot of the logic necessary to do this already exists in &lt;a href="https://www.logviewplus.com/docs/advanced_rules.html" id="if_insertedNode_1682256880727"&gt;Rules&lt;/a&gt;, but this would need to be repackaged to support advanced filtering.&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks for the suggestion,&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Sun, 23 Apr 2023 13:35:01 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: Is it possible to use text filters for "adjacent lines"? As text "AB" has to be found 2 lines above text "CD"</title><link>https://www.logviewplus.com/forum/post/1743</link><description>Currently, the only way to do something like this would be to create a &lt;a href="https://www.logviewplus.com/docs/custom_analyzers.html" id="if_insertedNode_1682171220670"&gt;custom analyser&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;However, we have recently added SQL capabilities into LogViewPlus.&amp;nbsp; If we added support for the &lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/functions/lag-transact-sql?view=sql-server-ver16" id="if_insertedNode_1682171312872"&gt;lag function&lt;/a&gt;, we should be able to handle scenarios like this by creating a &lt;a href="https://www.logviewplus.com/docs/sql_filter.html" id="if_insertedNode_1682171350102"&gt;SQL filter&lt;/a&gt;.&amp;nbsp; This function may not work properly when a log file is in tail mode, but I think it is still a feature worth considering.</description><pubDate>Sat, 22 Apr 2023 13:53:55 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>