ElasticSearch
Fetch incidents from an Elasticsearch index on a schedule
A fork of the FortiSOAR Elasticsearch connector that adds a fetch incidents operation querying an index with a time filter.
elasticsearch_4.0.1.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Fork of a Content Hub connector
An enhanced copy of ElasticSearch elasticsearch v4.0.0Original's documentation
Operations this fork adds over the original 1 of 10 total
- Fetch Incidents
What the author changed: Adds a fetch incidents operation that queries an index with a time filter, for pulling alerts into FortiSOAR on a schedule.
Keeps the original's machine name, so importing this upgrades the Content Hub connector in place and existing configurations survive. Differences are re-measured against the current Content Hub index at every site build, so this stays truthful as the original moves.
Configuration · 6 fields
- Server URL
server_urltext requiredThe FQDN or IP address of the ElasticSearch server to which you will connect.
- Protocol
protocolselect requiredThe Protocol used to connect to the ElasticSearch server remotely. Choose between http or https. By default, https is used.
Default
httpsOptions httpshttp - Authentication Type
authentication_typeselect requiredOptions Basic AuthenticationAPI Key AuthenticationWhen Authentication Type is Basic Authentication
- Username
usernametextThe Username to access the ElasticSearch server to which you will connect and perform the automated operations.
- Password
passwordpasswordThe Password to access the ElasticSearch server to which you will connect and perform the automated operations.
When Authentication Type is API Key Authentication
- API Key
api_keypassword requiredAPI Key to access the ElasticSearch server to which you will connect and perform automated operations.
- Port
portintegerThe Port number that is used to connect to the elasticsearch server. The default value is set to 9200.
Default
9200 - Maximum Retries
max_retriesintegerSet the maximum retries and connection timeout default value is set to 30 seconds.
Default
0 - Verify SSL
verify_sslcheckboxDefault
true
Operations · 10
Get Cluster Details 2 params
get_cluster_detailsget_cluster_detailsRetrieves cluster details and the health information about the cluster configured on your ElasticSearch instance, based on the index you have specified.
- Index
indextextAn index is a logical namespace that maps to one or more primary shards and can have zero or more replica shards. Specify a particular index whose cluster details you want to retrieve from ElasticSearch.
- Run As User
run_as_usertextRun as user is kind of a delegation of account access to a different account or an admin account. For example, User X take on the role of User Y with the help of run as user mechanism
Returnscluster_detailsGet Mapping 3 params
get_mappingget_mappingRetrieves a list of indices, which includes the type of indices that are currently configured on your ElasticSearch instance.
- Index
indextextAn index is a logical namespace that maps to one or more primary shards and can have zero or more replica shards. You can specify a particular index or if you search for all indices, which are currently configured on your ElasticSearch instance, use _all.
- Type
doc_typetextType in ElasticSearch represents a class of similar documents. Specify the type of indices for which you want to retrieve details.
- Run As User
run_as_usertextRun as user is kind of a delegation of account access to a different account or an admin account. For example, User X take on the role of User Y with the help of run as user mechanism
ReturnsmappingExecute Query 6 params
execute_queryexecute_queryExecutes a query and fetches data from your ElasticSearch instance, based on the input filters.
- Query
querytext requiredSpecify a stringified JSON formatted query used for searching data in ElasticSearch
- Index
indextextAn index is a logical namespace that maps to one or more primary shards and can have zero or more replica shards. Specify a particular index, based on which you want to run the query.
- Type
doc_typetextType in ElasticSearch represents a class of similar documents. Specify the type of indices, based on which you want to run the query.
- Routing
routingtextName of the shard for which you want to retrieve data.
- Run As User
run_as_usertextRun as user is kind of a delegation of account access to a different account or an admin account. For example, User X take on the role of User Y with the help of run as user mechanism
- Size
sizeintegerSet the number of record you want to fetch. Default is 10.
Default
10
Returns_shardstookhitsaggregationstimed_outExecute Lucene Query 4 params
execute_lucene_queryexecute_lucene_queryExecutes a search query without using Elastic's DSL Query Syntax. An example query to search for the term "phishing" in documents where the status field is set to 200 would look like this: phishing AND status:200
- Query
querytext required - Index
indextextAn index is a logical namespace that maps to one or more primary shards and can have zero or more replica shards. Specify a particular index, based on which you want to run the query.
- Size
sizeintegerSet the number of results to return. Default is 10.
Default
10 - Run As User
run_as_usertextRun as user is kind of a delegation of account access to a different account or an admin account. For example, User X take on the role of User Y with the help of run as user mechanism
Returns_shardstookhitsaggregationstimed_outGet Saved Search 2 params
get_saved_searchget_saved_searchRetrieves details of saved searches from ElasticSearch/Kibana.
- Object ID
object_idtext requiredThe Object ID of saved search.
- Port
portintegerThe port of Kibana server from which need to retrieve the saved search.
Default
5601
Returnsversionidupdated_attypeattributesGet Alerts List 5 params
get_alerts_listget_alerts_listRetrieves list of Alerts from ElasticSearch/Kibana.
- Start Time
startdatetime requiredStarting date time.
- End Time
enddatetime requiredEnding date time.
- Query
queryjsonSpecify query DSL that determines which results are returned from ElasticSearch.
- Limit
sizeintegerThe maximum number of records to return.
Default
50 - Port
portintegerThe port of Kibana server from which need to retrieve the Alerts.
Default
5601
Returnstooktimed_out_shardshitsaggregationsSet Alert Status 4 params
set_alert_statusset_alert_statusSets the status of Alert in ElasticSearch/Kibana.
- Status
statustext requiredSpecify the alert status. For example: open, acknowledged or closed.
- Alert ID
signal_idstextThe Alert IDs whose status to be set.
- Query
queryjsonSpecify query DSL that determines which alerts are updated in ElasticSearch
- Port
portintegerThe port of Kibana server from which need to set the status of the Alert.
Default
5601
Returnstooktimed_outtotalupdateddeletedbatchesversion_conflictsnoopsretriesthrottled_millisrequests_per_secondthrottled_until_millisfailuresApply Alert Tags 4 params
apply_alert_tagsapply_alert_tagsAdd and remove Alert tags in ElasticSearch/Kibana.
- Alert ID
idstext requiredThe Alert IDs to which the tags to be set.
- Tags to Add
tags_to_addtextSpecify the alert tag to add. For example: False Positive.
- Tags to Remove
tags_to_removetextSpecify the alert tag to remove. For example: Further Investigation Required.
- Port
portintegerThe port of Kibana server from which need to apply tags to the Alert.
Default
5601
ReturnstookerrorsitemsAssign or Unassign Users from Alerts 4 params
assign_unassign_users_from_alertassign_unassign_users_from_alertAssign or Unassign Users from Alert in ElasticSearch/Kibana.
- Alert ID
idstext requiredThe Alert IDs to which the users to be assigned or unassigned.
- Assign User
addtextSpecify the user to assign to Alert.
- Unassign User
removetextSpecify the user to unassign to Alert.
- Port
portintegerThe port of Kibana server from which need to assign or unassign user from Alert.
Default
5601
Returnstooktimed_outtotalupdateddeletedbatchesversion_conflictsnoopsretriesthrottled_millisrequests_per_secondthrottled_until_millisfailuresFetch Incidents fork addition 4 params
fetch_incidentsfetch_incidentsExecutes query to fetch incidents from Elastisearch based on input parameters.
- Index
indextext requiredElasticsearch index or index pattern to search
- Fetch Query
fetchQuerytextParams to filter query. Example: kibana.alert.rule.tags : (“PROD” or “HIGH_Severity”)
- Pull Time
pullTimedatetimeSpecify the last pull time to create time range
- Fetch Size
fetchSizeintegerNumber of incidents to fetch per run. Default is 50.
Default
50