

- #SPLUNK SUBSEARCH BASED ON RESULTS UPGRADE#
- #SPLUNK SUBSEARCH BASED ON RESULTS SOFTWARE#
- #SPLUNK SUBSEARCH BASED ON RESULTS CODE#
#SPLUNK SUBSEARCH BASED ON RESULTS UPGRADE#
What I'm trying to accomplish and what has been working up until the upgrade was that a map search would iterate over the hostnames, group all vulnerabilities for that host into a table, and send that as a separate email per host. The search pulls from a lookup table that contains vulnerability scan data containing four fields: Hostname, Vulnerability, Priority, and Responsibility. Recently upgraded from 7.2.3 to 8.0 and a previously configured scheduled alert is not longer sending emails correctly. Thanks in advance for your assistance with this undocumented error (at least in my search of the Internet), and for dealing with my pet peeve. | table _time, appName, transMethod, localrefid, token, eventcount, methodTime, _raw Which in turn leads to NOWHERE, none of the links work.ĪND (localrefid!="12345" AND localrefid!="null" OR localrefid!="") Searching this page for **literal** leads to If I Google this error **"Unable to parse the search: Right hand side of IN must be a collection of literals. **"Error in 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals.
#SPLUNK SUBSEARCH BASED ON RESULTS SOFTWARE#
However, most software has a vast black hole around such messages.
#SPLUNK SUBSEARCH BASED ON RESULTS CODE#
Obviously, a developer wrote the error code and its associated message. The result is a table with the fields totalUsers, variableA, and variableB.One of my biggest pet peeves about software is the lack of information around error messages. The eval command is used to define a "variableB".The where command is used to constrain the subsearch within time range of those fields. The addinfo command adds the info_min_time and info_max_time fields to the search results. Then, this search uses appendcols to search the server and count how many times a certain field occurs on that specific server.First, this search uses stats to count the number of individual users on a specific server and names that variable "totalUsers".rver | stats dc(userID) as totalUsers | appendcols | eval variableB = exact(variableA/totalUsers) This search uses appendcols to count the number of times a certain field occurs on a specific server and uses that value to calculate other fields. This is a valid search string because appendcols comes after the transforming command table and adds columns to an existing table of results. Index=_internal | table host | appendcols Search for "404" events and append the fields in each event to the previous search results. Note that the subsearch argument to the appendcols command doesn't have to contain a transforming command. The appendcols command can't be used before a transforming command because it must append to an existing set of table-formatted results, such as those generated by a transforming command. The appendcols command must be placed in a search string after a transforming command such as stats, chart, or timechart. Default: 50000 timeout Syntax: timeout= Description: The maximum time, in units of seconds, to wait for subsearch to fully finish. Default: 60 maxout Syntax: maxout= Description: The maximum number of result rows to output from the subsearch. Subsearch options maxtime Syntax: maxtime= Description: The maximum time, in units of seconds, to spend on the subsearch before automatically finalizing. Default: override=false subsearch-options Syntax: maxtime= | maxout= | timeout= Description: These options control how the subsearch is executed. If override=true, the subsearch result value is used. Optional arguments override Syntax: override= Description: If the override argument is false, and if a field is present in both a subsearch result and the main result, the main result is used. See how subsearches work in the Search Manual. Required arguments subsearch Description: A secondary search added to the main search. For example, the first subsearch result is merged with the first main result, the second subsearch result is merged with the second main result, and so on. All fields of the subsearch are combined into the current results, with the exception of internal fields. Appends the fields of the subsearch results with the input search results.
