Modifier and Type | Method and Description |
---|---|
void |
acknowledge()
Acknowledges the suppression of alerts from this saved search
and resumes alerting.
|
protected String |
actionPath(String action)
Returns the path that corresponds to the requested action.
|
Job |
dispatch()
Runs the saved search.
|
Job |
dispatch(Map args)
Runs the saved search using dispatch arguments.
|
Job |
dispatch(SavedSearchDispatchArgs args)
Runs the saved search using dispatch arguments.
|
String |
getActionEmailAuthPassword()
Returns the email password.
|
String |
getActionEmailAuthUsername()
Returns the email username.
|
String |
getActionEmailBcc()
Returns the blind carbon copy (BCC) email address.
|
String |
getActionEmailCc()
Returns the carbon copy (CC) email address.
|
String |
getActionEmailCommand()
Returns the search command (or pipeline) that runs the action.
|
String |
getActionEmailFormat()
Returns the format of text in the email.
|
String |
getActionEmailFrom()
Returns the email sender's name.
|
String |
getActionEmailHostname()
Returns the host name used in the web link (URL) that is sent in email
alerts.
|
boolean |
getActionEmailInline()
Indicates whether the search results are contained in the body of the
email.
|
String |
getActionEmailMailServer()
Returns the address of the MTA server that is used to send the emails.
|
int |
getActionEmailMaxResults()
Returns the maximum number of search results to send in email alerts.
|
String |
getActionEmailMaxTime()
Returns the maximum amount of time an email action takes before the
action is canceled.
|
String |
getActionEmailPdfView()
Returns the name of the view to deliver if
ActionEmailSendPdf is
enabled. |
String |
getActionEmailPreProcessResults()
Returns the search string for pre-processing results before emailing
them.
|
String |
getActionEmailReportPaperOrientation()
Returns the paper orientation.
|
String |
getActionEmailReportPaperSize()
Returns the paper size for PDFs.
|
boolean |
getActionEmailReportServerEnabled()
Indicates whether the PDF server is enabled.
|
String |
getActionEmailReportServerUrl()
Returns the URL of the PDF report server, if one is set up and available
on the network.
|
boolean |
getActionEmailSendPdf()
Indicates whether to create and send the results in PDF format.
|
boolean |
getActionEmailSendResults()
Indicates whether search results are attached to an email.
|
String |
getActionEmailSubject()
Returns the subject line of the email.
|
String |
getActionEmailTo()
Returns a list of email recipients.
|
boolean |
getActionEmailTrackAlert()
Indicates whether running this email action results in a trackable alert.
|
String |
getActionEmailTtl()
Returns the minimum time-to-live (ttl) of search artifacts if
this email action is triggered.
|
boolean |
getActionEmailUseSsl()
Indicates whether to use secure socket layer (SSL) when communicating
with the SMTP server.
|
boolean |
getActionEmailUseTls()
Indicates whether to use transport layer security (TLS) when
communicating with the SMTP server.
|
boolean |
getActionEmailWidthSortColumns()
Indicates whether columns should be sorted from least wide to most wide,
left to right.
|
String |
getActionPopulateLookupCommand()
Returns the search command (or pipeline) that runs the action.
|
String |
getActionPopulateLookupDest()
Returns the name of the lookup table or lookup path to populate.
|
String |
getActionPopulateLookupHostname()
Returns the host name used in the web link (URL) that is sent in
populate-lookup alerts.
|
int |
getActionPopulateLookupMaxResults()
Returns the maximum number of search results to send in populate-lookup
alerts.
|
String |
getActionPopulateLookupMaxTime()
Returns the maximum amount of time an alert action takes before the
action is canceled.
|
boolean |
getActionPopulateLookupTrackAlert()
Indicates whether running this populate-lookup action results in a
trackable alert.
|
String |
getActionPopulateLookupTtl()
Returns the minimum time-to-live (ttl) of search artifacts if
this populate-lookup action is triggered.
|
String |
getActionRssCommand()
Returns the search command (or pipeline) that runs the action.
|
String |
getActionRssHostname()
Returns the host name used in the web link (URL) that is sent in RSS
alerts.
|
int |
getActionRssMaxResults()
Returns the maximum number of search results to send in RSS alerts.
|
String |
getActionRssMaxTime()
Returns the maximum amount of time an RSS alert action takes before the
action is canceled.
|
boolean |
getActionRssTrackAlert()
Indicates whether running this RSS action results in a trackable alert.
|
String |
getActionRssTtl()
Returns the minimum time-to-live (ttl) of search artifacts if
this RSS action is triggered.
|
String |
getActionScriptCommand()
Returns the search command (or pipeline) that runs the action.
|
String |
getActionScriptFilename()
Returns the filename of the script to call.
|
String |
getActionScriptHostname()
Returns the host name used in the web link (URL) that is sent in script
alerts.
|
int |
getActionScriptMaxResults()
Returns the maximum number of search results to send in script alerts.
|
String |
getActionScriptMaxTime()
Returns the maximum amount of time a script action takes before the
action is canceled.
|
boolean |
getActionScriptTrackAlert()
Indicates whether running this script action results in a trackable
alert.
|
String |
getActionScriptTtl()
Returns the minimum time-to-live (ttl) of search artifacts if
this script action is triggered.
|
String |
getActionSummaryIndexCommand()
Returns the search command (or pipeline) that runs the action.
|
String |
getActionSummaryIndexHostname()
Returns the host name used in the web link (URL) that is sent in
summary-index alerts.
|
boolean |
getActionSummaryIndexInline()
Indicates whether to run the summary indexing action as part of the
scheduled search.
|
int |
getActionSummaryIndexMaxResults()
Returns the maximum number of search results to send in summary-index
alerts.
|
String |
getActionSummaryIndexMaxTime()
Returns the maximum amount of time a summary action takes before the
action is canceled.
|
String |
getActionSummaryIndexName()
Returns the name of the summary index where the results of the scheduled
search are saved.
|
boolean |
getActionSummaryIndexTrackAlert()
Indicates whether running this summary-index action results in a
trackable alert.
|
String |
getActionSummaryIndexTtl()
Returns the minimum time-to-live (ttl) of search artifacts if
a summary-index action is triggered.
|
String |
getAlertComparator()
Returns the alert comparator.
|
String |
getAlertCondition()
Returns a conditional search that is evaluated against the results of
the saved search.
|
boolean |
getAlertDigestMode()
Indicates whether Splunk applies the alert actions to the entire result
set (digest) or to each individual search result (per result).
|
String |
getAlertExpires()
Returns the amount of time to show the alert in the dashboard.
|
int |
getAlertSeverity()
Returns the alert severity level.
|
boolean |
getAlertSuppress()
Indicates whether alert suppression is enabled for this search.
|
String |
getAlertSuppressFields()
Returns a list of fields to use for alert suppression.
|
String |
getAlertSuppressPeriod()
Returns the alert suppression period, which is only valid if
AlertSuppress is enabled. |
String |
getAlertThreshold()
Returns the value to compare to before triggering the alert action.
|
String |
getAlertTrack()
Returns a value that indicates how to track the actions triggered
by this saved search.
|
String |
getAlertType()
Returns a value that indicates what to base the alert on.
|
String |
getCronSchedule()
Returns the cron-style schedule for running this saved search.
|
String |
getDescription()
Returns a description of this saved search.
|
int |
getDispatchBuckets()
Returns the maximum number of timeline buckets.
|
String |
getDispatchEarliestTime()
Returns the earliest time for this search.
|
String |
getDispatchLatestTime()
Returns the latest time for this search.
|
boolean |
getDispatchLookups()
Indicates whether lookups are enabled for this search.
|
int |
getDispatchMaxCount()
Returns the maximum number of results before finalizing the search.
|
int |
getDispatchMaxTime()
Returns the maximum amount of time before finalizing the search.
|
boolean |
getDispatchRealTimeBackfill()
Indicates whether to back fill the real-time window for this search.
|
int |
getDispatchReduceFrequency()
Returns how frequently Splunk runs the MapReduce reduce phase
on accumulated map values.
|
boolean |
getDispatchRtBackfill()
Deprecated.
Use
getDispatchRealTimeBackfill() instead. |
boolean |
getDispatchSpawnProcess()
Indicates whether Splunk spawns a new search process when running
this saved search.
|
String |
getDispatchTimeFormat()
Returns the time format used to specify the earliest and latest times
for this search.
|
String |
getDispatchTtl()
Returns the time to live (ttl) for artifacts of the scheduled search (the
time before the search job expires and artifacts are still available),
if no alerts are triggered.
|
String |
getDisplayView()
Returns the default view in which to load results.
|
String |
getEmbedToken()
Returns the authorization token for embedding the search.
|
int |
getMaxConcurrent()
Returns the maximum number of concurrent instances of this search
the scheduler is allowed to run.
|
Date |
getNextScheduledTime()
Returns the next scheduled time.
|
String |
getQualifiedSearch()
Returns the qualified search.
|
boolean |
getRealtimeSchedule()
Indicates whether the scheduler computes the next run time of a
scheduled search based on the current time or on the last search run
time (for continuous scheduling).
|
String |
getRequestUiDispatchApp()
Returns the app in which Splunk Web dispatches this search.
|
String |
getRequestUiDispatchView()
Returns the view in which Splunk Web displays this search.
|
boolean |
getRestartOnSearchPeerAdd()
Indicates whether a real-time search managed by the scheduler is
restarted when a search peer becomes available for this saved search.
|
boolean |
getRunOnStartup()
Indicates whether this search is run when Splunk starts.
|
String |
getSearch()
Returns the search query for this saved search.
|
String |
getVsid()
Returns the view state ID that is associated with the view specified in
the
DisplayView attribute. |
Job[] |
history()
Returns an array of search jobs created from this saved search.
|
Job[] |
history(Map<String,Object> args)
Returns an array of search jobs based on passed search arguments
|
boolean |
isActionEmail()
Indicates whether the email action is enabled.
|
boolean |
isActionPopulateLookup()
Indicates whether the populate-lookup action is enabled.
|
boolean |
isActionRss()
Indicates whether the RSS action is enabled.
|
boolean |
isActionScript()
Indicates whether the script action is enabled.
|
boolean |
isActionSummaryIndex()
Indicates whether the summary-index action is enabled.
|
boolean |
isDigestMode()
Indicates whether Splunk applies the alert actions to the entire result
set (digest) or to each individual search result (per result).
|
boolean |
isEmbedEnabled()
Indicates whether embedding is enabled for the search.
|
boolean |
isScheduled()
Indicates whether this search is run on a schedule.
|
boolean |
isVisible()
Indicates whether the search should be visible in the saved search list.
|
void |
setActionEmailAuthPassword(String password)
Sets the password to use when authenticating with the SMTP server.
|
void |
setActionEmailAuthUsername(String username)
Sets the username to use when authenticating the SMTP server.
|
void |
setActionEmailBcc(String bcc)
Sets the blind carbon copy (BCC) email address to use for email alerts.
|
void |
setActionEmailCc(String cc)
Sets the carbon copy (CC) email address to use for email alerts.
|
void |
setActionEmailCommand(String command)
Returns the search command (or pipeline) that runs the action.
|
void |
setActionEmailFormat(String format)
Sets the format of text in the email.
|
void |
setActionEmailFrom(String from)
Sets the email sender's name.
|
void |
setActionEmailHostname(String hostname)
Sets the host name used in the web link (URL) to send in email alerts.
|
void |
setActionEmailInline(boolean inline)
Sets whether the search results are contained in the body of the email.
|
void |
setActionEmailMailServer(String mailServer)
Sets the address of the MTA server that is used to send the emails.
|
void |
setActionEmailMaxResults(int maxResults)
Sets the maximum number of search results to send in email alerts.
|
void |
setActionEmailMaxTime(String maxTime)
Sets the maximum amount of time an email action takes before the
action is canceled.
|
void |
setActionEmailPdfView(String name)
Sets the name of the view to deliver if
ActionEmailSendPdf is
enabled. |
void |
setActionEmailPreProcessResults(String preprocess)
Sets the search string for pre-processing results before emailing
them.
|
void |
setActionEmailReportPaperOrientation(String orientation)
Sets the paper orientation.
|
void |
setActionEmailReportPaperSize(String size)
Sets the paper size for PDFs.
|
void |
setActionEmailReportServerEnabled(boolean pdfServerEnabled)
Sets whether the PDF server is enabled.
|
void |
setActionEmailReportServerUrl(String pdfServerUrl)
Sets the URL of the PDF report server.
|
void |
setActionEmailSendPdf(boolean sendPdf)
Sets whether to create and send the results in PDF format.
|
void |
setActionEmailSendResults(boolean sendResults)
Sets whether to attach the search results to an email.
|
void |
setActionEmailSubject(String subject)
Sets the subject line of the email.
|
void |
setActionEmailTo(String to)
Sets a list of email recipients.
|
void |
setActionEmailTrackAlert(boolean trackAlert)
Sets whether running this email action results in a trackable alert.
|
void |
setActionEmailTtl(String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if an
email action is triggered.
|
void |
setActionEmailUseSsl(boolean useSsl)
Sets whether to use secure socket layer (SSL) when communicating
with the SMTP server.
|
void |
setActionEmailUseTls(boolean useTls)
Sets whether to use transport layer security (TLS) when
communicating with the SMTP server.
|
void |
setActionEmailWidthSortColumns(boolean widthSortColumns)
Sets whether columns should be sorted from least wide to most wide,
left to right.
|
void |
setActionPopulateLookupCommand(String command)
Sets the search command (or pipeline) that runs the action.
|
void |
setActionPopulateLookupDest(String dest)
Sets the name of the lookup table or lookup path to populate.
|
void |
setActionPopulateLookupHostname(String hostname)
Sets the host name used in the web link (URL) to send in populate-lookup
alerts.
|
void |
setActionPopulateLookupMaxResults(int maxResults)
Sets the maximum number of search results to send in populate-lookup
alerts.
|
void |
setActionPopulateLookupMaxTime(String maxTime)
Sets the maximum amount of time an alert action takes before the
action is canceled.
|
void |
setActionPopulateLookupTrackAlert(boolean trackAlert)
Sets whether running this populate-lookup action results in a trackable
alert.
|
void |
setActionPopulateLookupTtl(String ttl)
Sets the minimum time-to-live (ttl) of the search artifacts if
this populate-lookup action is triggered.
|
void |
setActionRssCommand(String command)
Sets the search command (or pipeline) that runs the action.
|
void |
setActionRssHostname(String hostname)
Sets the host name to use in the web link (URL) to send in RSS alerts.
|
void |
setActionRssMaxResults(int maxResults)
Sets the maximum number of search results to send in RSS alerts.
|
void |
setActionRssMaxTime(String maxTime)
Sets the maximum amount of time an RSS action takes before the
action is canceled.
|
void |
setActionRssTrackAlert(boolean trackAlert)
Sets whether running this RSS action results in a trackable alert.
|
void |
setActionRssTtl(String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if an
RSS action is triggered.
|
void |
setActions(String actions)
Sets whichs actions to enable.
|
void |
setActionScriptCommand(String command)
Sets the search command (or pipeline) that runs the action.
|
void |
setActionScriptFilename(String filename)
Sets the file name of the script to call.
|
void |
setActionScriptHostname(String hostname)
Sets the host name used in the web link (URL) to send in script alerts.
|
void |
setActionScriptMaxResults(int maxResults)
Sets the maximum number of search results to send in script alerts.
|
void |
setActionScriptMaxTime(String maxTime)
Sets the maximum amount of time a script action takes before the
action is canceled.
|
void |
setActionScriptTrackAlert(boolean trackAlert)
Sets whether running this script action results in a trackable alert.
|
void |
setActionScriptTtl(String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if a
script action is triggered.
|
void |
setActionSummaryIndexCommand(String command)
Sets the search command (or pipeline) that runs the action.
|
void |
setActionSummaryIndexHostname(String hostname)
Sets the host name used in the web link (URL) to send in summary-index
alerts.
|
void |
setActionSummaryIndexInline(boolean inline)
Sets whether to run the summary indexing action as part of the
scheduled search.
|
void |
setActionSummaryIndexMaxResults(int maxResults)
Sets the maximum number of search results to send in summary-index
alerts.
|
void |
setActionSummaryIndexMaxTime(String maxTime)
Sets the maximum amount of time a summary-index action takes before the
action is canceled.
|
void |
setActionSummaryIndexName(String name)
Sets the name of the summary index where the results of the scheduled
search are saved.
|
void |
setActionSummaryIndexTrackAlert(boolean trackAlert)
Sets whether running summary-index action results in a trackable alert.
|
void |
setActionSummaryIndexTtl(String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if a
summary-index action is triggered.
|
void |
setAlertComparator(String comparator)
Sets the alert comparator.
|
void |
setAlertCondition(String conditional)
Sets a conditional search that is evaluated against the results of the
saved search.
|
void |
setAlertDigestMode(boolean digest)
Sets whether Splunk applies the alert actions to the entire result set or
on each individual result.
|
void |
setAlertExpires(String period)
Sets the period of time to show the alert in the dashboard.
|
void |
setAlertSeverity(int severity)
Sets the alert severity level, which is an integer from 1-6 (1=DEBUG,
2=INFO, 3=WARN, 4=ERROR, 5=SEVERE, 6=FATAL).
|
void |
setAlertSuppress(boolean suppress)
Sets whether to enable alert suppression for this scheduled search.
|
void |
setAlertSuppressFields(String fields)
Specifies a list of fields to use for alert suppression.
|
void |
setAlertSuppressPeriod(String period)
Sets the period for alert suppression.
|
void |
setAlertThreshold(String threshold)
Sets the value to compare to before triggering the alert action.
|
void |
setAlertTrack(String track)
Sets how to track the actions triggered by this saved search.
|
void |
setAlertType(String type)
Sets a value that indicates what to base the alert on.
|
void |
setCronSchedule(String cronSchedule)
Sets the cron schedule for running this saved search.
|
void |
setDescription(String description)
Sets the description of this saved search.
|
void |
setDisabled(boolean disabled)
Sets whether the saved search is disabled.
|
void |
setDispatchBuckets(int buckets)
Sets the maximum number of timeline buckets.
|
void |
setDispatchBuckets(String buckets)
Deprecated.
Use
setDispatchBuckets(int) instead. |
void |
setDispatchEarliestTime(String earliestTime)
Sets the earliest time for this search.
|
void |
setDispatchLatestTime(String latestTime)
Sets the latest time for this search.
|
void |
setDispatchLookups(boolean lookups)
Sets whether to enable lookups for this search.
|
void |
setDispatchMaxCount(int max)
Sets the maximum number of results before finalizing the search.
|
void |
setDispatchMaxTime(int max)
Sets the maximum time before finalizing the search.
|
void |
setDispatchRealTimeBackfill(boolean backfill)
Sets whether to back fill the real-time window for this search.
|
void |
setDispatchReduceFrequency(int seconds)
Sets how frequently Splunk should run the MapReduce reduce phase on
accumulated map values.
|
void |
setDispatchSpawnProcess(boolean spawn)
Sets whether Splunk spawns a new search process when running this saved
search.
|
void |
setDispatchTimeFormat(String format)
Sets the time format used to specify the earliest and latest times
for this search.
|
void |
setDispatchTtl(String format)
Sets the minimum time-to-live in seconds of the search artifacts if no
actions are triggered.
|
void |
setDisplayView(String view)
Sets the default view in which to load the results.
|
void |
setIsScheduled(boolean value)
Sets whether this search runs on a schedule.
|
void |
setIsVisible(boolean value)
Sets whether this search appears in the visible list of saved searches.
|
void |
setMaxConcurrent(int max)
Sets the maximum number of concurrent instances of this search the
scheduler is allowed to run.
|
void |
setRealtimeSchedule(boolean value)
Sets how the scheduler computes the next time a scheduled search is run.
|
void |
setRequestUiDispatchApp(String app)
Sets the app in which Splunk Web dispatches this search.
|
void |
setRequestUiDispatchView(String view)
Sets the view in which Splunk Web displays this search.
|
void |
setRestartOnSearchpeerAdd(boolean restart)
Deprecated.
Use
setRestartOnSearchPeerAdd(boolean) instead. |
void |
setRestartOnSearchPeerAdd(boolean restart)
Sets whether a real-time search managed by the scheduler is
restarted when a search peer becomes available for this saved search.
|
void |
setRunOnStartup(boolean startup)
Sets whether this search is run when Splunk starts.
|
void |
setSearch(String search)
Sets the search query for this saved search.
|
void |
setVsid(String vsid)
Sets the view state ID that is associated with the view specified in
the
DisplayView attribute. |
void |
update()
Updates the entity with the accumulated arguments, established by the
individual setter methods for each specific entity class.
|
void |
update(Map<String,Object> args)
Updates the entity with the values you previously set using the setter
methods, and any additional specified arguments.
|
clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, validate, values
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public void acknowledge()
protected String actionPath(String action)
actionPath
in class Entity
action
- The requested action.public Job dispatch() throws InterruptedException
InterruptedException
- The InterruptedException instancepublic Job dispatch(Map args) throws InterruptedException
args
- Dispatch arguments: InterruptedException
- The InterruptedException instancepublic Job dispatch(SavedSearchDispatchArgs args) throws InterruptedException
args
- Dispatch arguments (see SavedSearchDispatchArgs
).InterruptedException
- The InterruptedException instancepublic Job[] history()
public Job[] history(Map<String,Object> args)
args
- public String getActionEmailAuthPassword()
public String getActionEmailAuthUsername()
public String getActionEmailBcc()
public String getActionEmailCc()
public String getActionEmailCommand()
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
public String getActionEmailFormat()
public String getActionEmailFrom()
public String getActionEmailHostname()
public boolean getActionEmailInline()
true
if search results are contained in the body of the
email, false
if not.public String getActionEmailMailServer()
public int getActionEmailMaxResults()
public String getActionEmailMaxTime()
public String getActionEmailPdfView()
ActionEmailSendPdf
is
enabled.getActionEmailSendPdf()
public String getActionEmailPreProcessResults()
public String getActionEmailReportPaperOrientation()
public String getActionEmailReportPaperSize()
public boolean getActionEmailReportServerEnabled()
true
if the PDF server is enabled, false
if not.public String getActionEmailReportServerUrl()
public boolean getActionEmailSendPdf()
true
if results are sent in PDF format, false
if
not.public boolean getActionEmailSendResults()
true
if search results are attached to an email,
false
if not.public String getActionEmailSubject()
public String getActionEmailTo()
public boolean getActionEmailTrackAlert()
true
for a trackable alert, false
if not.public String getActionEmailTtl()
public boolean getActionEmailUseSsl()
true
if SSL is used, false
if not.public boolean getActionEmailUseTls()
true
if TLS is used, false
if not.public boolean getActionEmailWidthSortColumns()
ActionEmailFormat
is "plain".true
if columns are sorted from least wide to most wide,
false
if not.getActionEmailFormat()
public String getActionPopulateLookupCommand()
public String getActionPopulateLookupDest()
public String getActionPopulateLookupHostname()
public int getActionPopulateLookupMaxResults()
public String getActionPopulateLookupMaxTime()
public boolean getActionPopulateLookupTrackAlert()
true
for a trackable alert, false
if not.public String getActionPopulateLookupTtl()
public String getActionRssCommand()
public String getActionRssHostname()
public int getActionRssMaxResults()
public String getActionRssMaxTime()
public boolean getActionRssTrackAlert()
true
for a trackable alert, false
if not.public String getActionRssTtl()
public String getActionScriptCommand()
public String getActionScriptFilename()
public String getActionScriptHostname()
public int getActionScriptMaxResults()
public String getActionScriptMaxTime()
public boolean getActionScriptTrackAlert()
true
for a trackable alert, false
if not.public String getActionScriptTtl()
public String getActionSummaryIndexName()
public String getActionSummaryIndexCommand()
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
public String getActionSummaryIndexHostname()
public boolean getActionSummaryIndexInline()
true
if the summary indexing action runs with the
scheduled search, false
if not.public int getActionSummaryIndexMaxResults()
public String getActionSummaryIndexMaxTime()
public boolean getActionSummaryIndexTrackAlert()
true
for a trackable alert, false
if not.public String getActionSummaryIndexTtl()
public boolean getAlertDigestMode()
true
if Splunk applies the alert actions to the entire
result set (digest), false
if actions are applied to individual
search results (per result).public String getAlertExpires()
public int getAlertSeverity()
1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=SEVERE, 6=FATAL
.public boolean getAlertSuppress()
true
if alert suppression is enabled for this
search, false
if not.public String getAlertSuppressFields()
public String getAlertSuppressPeriod()
AlertSuppress
is enabled.
The valid format is number followed by a time unit ("s", "m", "h",
or "d").getAlertSuppress()
public String getAlertTrack()
public String getAlertComparator()
public String getAlertCondition()
public String getAlertThreshold()
AlertComparator
is set to "rises by perc" or "drops by
perc."getAlertComparator()
public String getAlertType()
AlertCondition
if specified.getAlertCondition()
public String getCronSchedule()
public String getDescription()
public int getDispatchBuckets()
public String getDispatchEarliestTime()
DispatchTimeFormat
).getDispatchTimeFormat()
public String getDispatchLatestTime()
DispatchTimeFormat
).getDispatchTimeFormat()
public boolean getDispatchLookups()
true
if lookups are enabled, false
if not.public int getDispatchMaxCount()
public int getDispatchMaxTime()
public int getDispatchReduceFrequency()
public boolean getDispatchRtBackfill()
getDispatchRealTimeBackfill()
instead.true
if Splunk back fills the real-time window,
false
if not.public boolean getDispatchRealTimeBackfill()
true
if Splunk back fills the real-time window,
false
if not.public boolean getDispatchSpawnProcess()
true
if Splunk spawns a new search process, false
if not.public String getDispatchTimeFormat()
public String getDispatchTtl()
public String getDisplayView()
public int getMaxConcurrent()
public Date getNextScheduledTime()
public String getQualifiedSearch()
public boolean getRealtimeSchedule()
true
if the run time is based on current time,
false
if based on the previous search time.public String getRequestUiDispatchApp()
public String getRequestUiDispatchView()
public boolean getRestartOnSearchPeerAdd()
true
if a real-time search is restarted,
false
if not.public boolean getRunOnStartup()
true
if this search is run when Splunk starts,
false
if not.public String getSearch()
public String getVsid()
DisplayView
attribute. This ID corresponds to a stanza in the
viewstates.conf configuration file.getDisplayView()
public boolean isActionEmail()
true
if the email action is enabled, false
if
not.public boolean isActionPopulateLookup()
true
if the populate-lookup action is enabled,
false
if not.public boolean isActionRss()
true
if the RSS action is enabled, false
if not.public boolean isActionScript()
true
if the script action is enabled, false
if
not.public boolean isActionSummaryIndex()
true
if the summary-index action is enabled,
false
if not.public boolean isDigestMode()
true
if actions are applied per digest,
false
if per result.public boolean isScheduled()
true
if this search is run on a schedule, false
if not.public boolean isVisible()
true
if the search should be listed, false
if
not.public boolean isEmbedEnabled()
true
if the search is enabled for the search, false
if not.public String getEmbedToken()
public void setActionEmailAuthPassword(String password)
password
- The password.public void setActionEmailAuthUsername(String username)
username
- The username for authentication.public void setActionEmailBcc(String bcc)
bcc
- The BCC email address.isActionEmail()
public void setActionEmailCc(String cc)
cc
- The CC email address.isActionEmail()
public void setActionEmailCommand(String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionEmailFormat(String format)
format
- The email format.public void setActionEmailFrom(String from)
from
- The sender's name.public void setActionEmailHostname(String hostname)
hostname
- The host name to use in the URL.public void setActionEmailInline(boolean inline)
inline
- true
to include search results in the body of the
email, false
if not.public void setActionEmailMailServer(String mailServer)
mailServer
- The address of the MTA server.public void setActionEmailMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionEmailMaxTime(String maxTime)
maxTime
- The maximum amount of time.public void setActionEmailPdfView(String name)
ActionEmailSendPdf
is
enabled.name
- The name of the PDF view.getActionEmailSendPdf()
public void setActionEmailPreProcessResults(String preprocess)
preprocess
- The search string for pre-processing results.public void setActionEmailReportPaperOrientation(String orientation)
orientation
- The paper orientation.public void setActionEmailReportPaperSize(String size)
size
- The paper size.public void setActionEmailReportServerEnabled(boolean pdfServerEnabled)
pdfServerEnabled
- true
if the PDF server is enabled,
false
if not.public void setActionEmailReportServerUrl(String pdfServerUrl)
pdfServerUrl
- The URL of the PDF report server.public void setActionEmailSendPdf(boolean sendPdf)
sendPdf
- true
to send results in PDF format, false
if not.public void setActionEmailSendResults(boolean sendResults)
sendResults
- true
to attach search results to an email,
false
if not.public void setActionEmailSubject(String subject)
subject
- The subject line of the email.public void setActionEmailTo(String to)
to
- A comma- or semicolon-delimited list of email recipients.public void setActionEmailTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionEmailTtl(String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionEmailUseSsl(boolean useSsl)
useSsl
- true
to use SSL, false
if not.public void setActionEmailUseTls(boolean useTls)
useTls
- true
to use TLS, false
if not.public void setActionEmailWidthSortColumns(boolean widthSortColumns)
ActionEmailFormat
is "plain".widthSortColumns
- true
to sort columns from least wide to
most wide, false
if not.getActionEmailFormat()
public void setActionPopulateLookupCommand(String command)
command
- The search command (or pipeline).public void setActionPopulateLookupDest(String dest)
dest
- The lookup name or path.public void setActionPopulateLookupHostname(String hostname)
hostname
- The host name to use in the URL.public void setActionPopulateLookupMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionPopulateLookupMaxTime(String maxTime)
maxTime
- The maximum amount of time.public void setActionPopulateLookupTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionPopulateLookupTtl(String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionRssCommand(String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionRssHostname(String hostname)
hostname
- The host name to use in the URL.public void setActionRssMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionRssMaxTime(String maxTime)
maxTime
- The maximum amount of time.public void setActionRssTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionRssTtl(String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionScriptCommand(String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionScriptFilename(String filename)
ActionScript
is enabled.filename
- The file name of the script.isActionScript()
public void setActionScriptHostname(String hostname)
hostname
- The host name to use in the URL.public void setActionScriptMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionScriptMaxTime(String maxTime)
maxTime
- The maximum amount of time.public void setActionScriptTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionScriptTtl(String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionSummaryIndexName(String name)
name
- The name of the summary index.public void setActionSummaryIndexCommand(String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionSummaryIndexHostname(String hostname)
hostname
- The host name to use in the URL.public void setActionSummaryIndexInline(boolean inline)
inline
- true
to run the summary indexing action with the
scheduled search, false
if not.public void setActionSummaryIndexMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionSummaryIndexMaxTime(String maxTime)
maxTime
- The maximum amount of time.public void setActionSummaryIndexTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionSummaryIndexTtl(String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActions(String actions)
actions
- A comma-separated list of actions.public void setAlertDigestMode(boolean digest)
digest
- true
if Splunk applies the alert actions to the
entire result set (digest), false
if actions are applied to
individual search results (per result).public void setAlertExpires(String period)
period
- The amount of time.public void setAlertSeverity(int severity)
severity
- The alert severity level.public void setAlertSuppress(boolean suppress)
suppress
- true
to enable alert suppression, false
if not.public void setAlertSuppressFields(String fields)
fields
- A comma-delimited list of fields.setAlertSuppress(boolean)
,
isDigestMode()
public void setAlertSuppressPeriod(String period)
AlertSuppress
is enabled.
The valid format is number followed by a time unit ("s", "m", "h",
or "d").period
- The suppression period.setAlertSuppress(boolean)
public void setAlertTrack(String track)
track
- The alert tracking setting.public void setAlertComparator(String comparator)
comparator
- The alert comparator.public void setAlertCondition(String conditional)
Note: If you specify an alert_condition, do not set
counttype
, relation
, or quantity
.
conditional
- A conditional search.public void setAlertThreshold(String threshold)
AlertComparator
is set to "rises by perc" or "drops by
perc."threshold
- The threshold as a number or percentage (a number
followed by "%").getAlertComparator()
public void setAlertType(String type)
AlertCondition
if specified.type
- The alert trigger type.public void setCronSchedule(String cronSchedule)
cronSchedule
- The schedule, as a valid cron-style string.public void setDescription(String description)
description
- The description.public void setDisabled(boolean disabled)
disabled
- true
to disable the saved search, false
to enable it.public void setDispatchBuckets(String buckets)
setDispatchBuckets(int)
instead.buckets
- The maximum number of timeline buckets.public void setDispatchBuckets(int buckets)
buckets
- The maximum number of timeline buckets.public void setDispatchEarliestTime(String earliestTime)
DispatchTimeFormat
.earliestTime
- The earliest time for this search.getDispatchTimeFormat()
public void setDispatchLatestTime(String latestTime)
DispatchTimeFormat
.latestTime
- The latest time for this search.getDispatchTimeFormat()
public void setDispatchLookups(boolean lookups)
lookups
- true
to enable lookups, false
if not.public void setDispatchMaxCount(int max)
max
- The maximum number of results.public void setDispatchMaxTime(int max)
max
- The maximum time, in seconds.public void setDispatchReduceFrequency(int seconds)
seconds
- The reduce frequency.public void setDispatchRealTimeBackfill(boolean backfill)
backfill
- true
if Splunk back fills the real-time window,
false
if not.public void setDispatchSpawnProcess(boolean spawn)
spawn
- true
if Splunk spawns a new search process,
false
if not.public void setDispatchTimeFormat(String format)
format
- The time format.public void setDispatchTtl(String format)
format
- The time to live, in seconds or as a multiple of the
scheduled search period.public void setDisplayView(String view)
view
- The view name (not label).public void setIsScheduled(boolean value)
value
- true
to run this search on a schedule, false
if not.public void setIsVisible(boolean value)
value
- true
to display this in the visible list,
false
if not.public void setMaxConcurrent(int max)
max
- The maximum number of concurrent instances.public void setRealtimeSchedule(boolean value)
true
: The schedule is based on the current time.
The scheduler might skip some scheduled periods to make
sure that searches over the most recent time range are run.false
: The schedule is based on the last search run time
(referred to as "continuous scheduling") and the scheduler never skips
scheduled periods. However, the scheduler might fall behind depending on
its load. Use continuous scheduling whenever you enable the summary index
option (ActionSummaryIndex
).value
- true
to enable a real-time schedule for this search,
false
to enable continuous scheduling for this search.isActionSummaryIndex()
public void setRequestUiDispatchApp(String app)
app
- The app name.public void setRequestUiDispatchView(String view)
view
- The view name.public void setRestartOnSearchpeerAdd(boolean restart)
setRestartOnSearchPeerAdd(boolean)
instead.Note: The peer can be one that is newly added or one that has become available after being down.
restart
- true
to restart a real-time search, false
if not.public void setRestartOnSearchPeerAdd(boolean restart)
Note: The peer can be one that is newly added or one that has become available after being down.
restart
- true
to restart a real-time search, false
if not.public void setRunOnStartup(boolean startup)
It is recommended that you set this value to true
for scheduled
searches that populate lookup tables.
startup
- true
to run this search when Splunk starts,
false
if not.public void setSearch(String search)
search
- The search query.public void setVsid(String vsid)
DisplayView
attribute.
Note: This ID must match a stanza in the from the viewstates.conf configuration file.
vsid
- The view state ID.getDisplayView()
public void update(Map<String,Object> args)
Copyright © 2022 Splunk, Inc.. All rights reserved.