I have created a powershell log parser application, with a 'number of newly found strings' component.
I am using a script that actually extracts the line of text from the log file and return this in the statistic message.
This is all working and it displays the error in the statistic message field. or displays 'No newly found strings' if no regex match was found
However I want to display the last 25 statistic messages when the statistic > 0 (i.e. a regex match was found for an error)
I have hundred and hundreds of this sort of application and have found that I can do this by creating a custom report and then using the 'Filter Nodes (SQL)' with a value of
applicationname='the application name' AND nodename = 'the node name'.
However this will be a lengthy process adding this value on all application (I would need a separate view for each application)
Is there any easier way to do this, perhaps by a variable in the 'Filter Nodes (SQL)' value that auto inserts the application name and node name?
Thanks