Skip to content

Commit

Permalink
SplunkPy: use expandtoken in mirroring query (#34840)
Browse files Browse the repository at this point in the history
* use expandtoken

* expand token in mirror

* update docker
  • Loading branch information
ilappe authored and amshamah419 committed Jun 20, 2024
1 parent e0332f3 commit 6b3e067
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Packs/SplunkPy/Integrations/SplunkPy/SplunkPy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,8 @@ def get_remote_data_command(service: client.Service, args: dict,
f'| where rule_id="{notable_id}" ' \
f'| where last_modified_timestamp>{last_update_splunk_timestamp} ' \
'| fields - time ' \
'| map search=" search `notable_by_id($rule_id$)`"'
'| map search=" search `notable_by_id($rule_id$)`"' \
'| expandtoken'

demisto.debug(f'Performing get-remote-data command with query: {search}')

Expand Down
2 changes: 1 addition & 1 deletion Packs/SplunkPy/Integrations/SplunkPy/SplunkPy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ script:
- contextPath: Splunk.UserMapping.SplunkUser
description: Splunk user mapping.
type: String
dockerimage: demisto/splunksdk-py3:1.0.0.91477
dockerimage: demisto/splunksdk-py3:1.0.0.98420
isfetch: true
ismappable: true
isremotesyncin: true
Expand Down
7 changes: 7 additions & 0 deletions Packs/SplunkPy/ReleaseNotes/3_1_30.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#### Integrations

##### SplunkPy

- Fixed an issue where in the mirror-in, fields value was changed to a non expanded token value
- Updated the Docker image to: *demisto/splunksdk-py3:1.0.0.98420*.
2 changes: 1 addition & 1 deletion Packs/SplunkPy/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Splunk",
"description": "Run queries on Splunk servers.",
"support": "xsoar",
"currentVersion": "3.1.29",
"currentVersion": "3.1.30",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 6b3e067

Please sign in to comment.