<?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[nxshell - Create an OR column filter?]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I am looking into more event log filtering, and I'm unsure from the documentation how exactly to create an OR filter. I would like to filter events with severity 0 OR severity 4, rather than filtering them separately. Anyone have any suggestions where to look?</p>
<p dir="auto">Thanks,<br />
Zach</p>
]]></description><link>https://forum.netxms.org/topic/4587/nxshell-create-an-or-column-filter</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:28:11 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4587.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Jul 2016 14:30:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to nxshell - Create an OR column filter? on Wed, 10 Jul 2019 02:32:15 GMT]]></title><description><![CDATA[<p dir="auto">I was simply looking for a way to be able to display alarms where status = outstanding without having to type outstanding every time.</p>
<p dir="auto">Alarm Log allows multiple filters - but is the log, so cannot acknowledge or terminate.</p>
<p dir="auto">Dashboard gives me access to the xml, but do not know what xml I need to add to have State = Outstanding.</p>
<p dir="auto">Having the State field as an additional display selection option on the Dashboard Alarms would be great - actually - it would be near perfect <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Perfect would be to include a search field - that would be perfect and would be the pen-ultimate Alarm browser.</p>
<p dir="auto">The ultimate? - have these in Alarm browser as well <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/26106</link><guid isPermaLink="true">https://forum.netxms.org/post/26106</guid><dc:creator><![CDATA[paul]]></dc:creator><pubDate>Wed, 10 Jul 2019 02:32:15 GMT</pubDate></item><item><title><![CDATA[Reply to nxshell - Create an OR column filter? on Sun, 07 Jul 2019 11:04:40 GMT]]></title><description><![CDATA[<p dir="auto">This question was not related to UI - it was about using nxshell (Python based external scripting tool). You can get filtered information form event or alarm log in nxshell, but it won't be shown as UI view. You can do the same within event log or alarm log view by adding appropriate filters.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/26078</link><guid isPermaLink="true">https://forum.netxms.org/post/26078</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 07 Jul 2019 11:04:40 GMT</pubDate></item><item><title><![CDATA[Reply to nxshell - Create an OR column filter? on Sun, 07 Jul 2019 06:25:24 GMT]]></title><description><![CDATA[<p dir="auto">In my quest to read every post and learn all things wonderful, I found this little gem.</p>
<p dir="auto">Am I correct in my understanding that what was being done here provided multi column filtering - which in this case is events, but equally applies to Alarms?</p>
<p dir="auto">Does anybody have this or variations of this working?</p>
<p dir="auto">I want to be able to select a container, show the alarm view, filtered by both the container and by status = Outstanding, and if possible, still have the filter visible. This seems to give me two out of three and putting it into an Object tool where I asks for the third filter, possible to have a three way filter that dynamically updates.</p>
]]></description><link>https://forum.netxms.org/post/26064</link><guid isPermaLink="true">https://forum.netxms.org/post/26064</guid><dc:creator><![CDATA[paul]]></dc:creator><pubDate>Sun, 07 Jul 2019 06:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to nxshell - Create an OR column filter? on Thu, 14 Jul 2016 18:12:17 GMT]]></title><description><![CDATA[<p dir="auto">You nailed it again! Thanks for the help.</p>
<p dir="auto">Thanks,<br />
Zach</p>
]]></description><link>https://forum.netxms.org/post/20416</link><guid isPermaLink="true">https://forum.netxms.org/post/20416</guid><dc:creator><![CDATA[zshnet]]></dc:creator><pubDate>Thu, 14 Jul 2016 18:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to nxshell - Create an OR column filter? on Mon, 11 Jul 2016 08:53:38 GMT]]></title><description><![CDATA[<p dir="auto">Use this two functions of ColumnFilter class:</p>
<pre><code>	/**
	 * Create filter of type SET
	 */
	public ColumnFilter()
	{
		type = SET;
		set = new HashSet&lt;ColumnFilter&gt;();
		operation = AND;
	}

	/**
	 * Add new element to SET type filter
	 *
	 * @param filter
	 */
	public void addSubFilter(ColumnFilter filter)
	{
		if (type == SET)
			set.add(filter);
	}
</code></pre>
<p dir="auto">It will look something like this:</p>
<pre><code>filter = ColumnFilter();
filter.setOperation(ColumnFilter.OR);
filter.addSubFilter(normalFilter); //ColumnFilter that filters events from event_severity column that have normal state
filter.addSubFilter(warningFilter);  //ColumnFilter that filters events from event_severity column that have warning state
</code></pre>
]]></description><link>https://forum.netxms.org/post/20402</link><guid isPermaLink="true">https://forum.netxms.org/post/20402</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Mon, 11 Jul 2016 08:53:38 GMT</pubDate></item><item><title><![CDATA[Reply to nxshell - Create an OR column filter? on Fri, 08 Jul 2016 15:43:24 GMT]]></title><description><![CDATA[<p dir="auto">No, no. I mean NetXMS's Event Log. I'm using nxshell to query the log for certain events, like so:</p>
<pre><code>sourceFilter = ColumnFilter(java.lang.Integer(ColumnFilter.EQUALS),0)
#Time filter is over 24 hours, or 86,400 seconds
timeFilter = ColumnFilter(long(time.time()-86400),long(time.time()))
#Start a log filter, and add our filters to the two  columns
logFilter = LogFilter()
#Columns  in the Event Log are: event_id, event_timestamp, event_source, dci_id, event_code, event_severity, event_message, user_tag, root_event_id
logFilter.setColumnFilter("event_severity",normalFilter)
logFilter.setColumnFilter("event_timestamp",timeFilter)
eventLog.query(logFilter)
critTable = eventLog.retrieveData(0,1)
</code></pre>
<p dir="auto">Rather than just filtering for Critical or Normal events, I'd like to build a ColumnFilter that filters for both, so that I don't have to do two separate queries. Any ideas?</p>
<p dir="auto">Thanks,<br />
Zach</p>
]]></description><link>https://forum.netxms.org/post/20396</link><guid isPermaLink="true">https://forum.netxms.org/post/20396</guid><dc:creator><![CDATA[zshnet]]></dc:creator><pubDate>Fri, 08 Jul 2016 15:43:24 GMT</pubDate></item><item><title><![CDATA[Reply to nxshell - Create an OR column filter? on Fri, 08 Jul 2016 14:55:21 GMT]]></title><description><![CDATA[<p dir="auto">If you mean level tag:<br />
<a href="https://www.netxms.org/documentation/adminguide/log-monitoring.html#level-tag" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/log-monitoring.html#level-tag</a><br />
or severity tag:<br />
<a href="https://www.netxms.org/documentation/adminguide/log-monitoring.html#severity-tag" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/log-monitoring.html#severity-tag</a><br />
all information is available there. To filter by multiple severity levels you should specify sum of appropriate codes.</p>
<p dir="auto">If you mean regexp filtering you can write like this: "level[04](.*)"<br />
This will mean that line should contain "level0" or "level4" and anything after that, that will be used like Event parameter.</p>
]]></description><link>https://forum.netxms.org/post/20393</link><guid isPermaLink="true">https://forum.netxms.org/post/20393</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Fri, 08 Jul 2016 14:55:21 GMT</pubDate></item></channel></rss>