Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging next to main for release 2.16.0 #42

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v1.16
rev: v1.17
hooks:
- id: org-hook
- id: package-app-dependencies
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2016-2023 Splunk Inc.
Copyright (c) 2016-2024 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
7 changes: 1 addition & 6 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Splunk SOAR Splunk
Copyright (c) 2016-2023 Splunk Inc.
Copyright (c) 2016-2024 Splunk Inc.

Third-party Software Attributions:

Expand Down Expand Up @@ -29,11 +29,6 @@ License: Zope
Copyright 1987-2006 implementation only works for dates between
Copyright 2003-2019 Stuart Bishop <[email protected]>

Library: requests
Version: 2.25.0
License: Apache 2.0
Kenneth Reitz

Library: simplejson
Version: 3.17.2
License: Academic 2.1
Expand Down
78 changes: 45 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Splunk

Publisher: Splunk
Connector Version: 2.15.1
Connector Version: 2.16.0
Product Vendor: Splunk Inc.
Product Name: Splunk Enterprise
Product Version Supported (regex): ".\*"
Expand All @@ -11,7 +11,7 @@ Minimum Product Version: 6.1.1
This app integrates with Splunk to update data on the device, in addition to investigate and ingestion actions

[comment]: # " File: README.md"
[comment]: # " Copyright (c) 2016-2023 Splunk Inc."
[comment]: # " Copyright (c) 2016-2024 Splunk Inc."
[comment]: # ""
[comment]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[comment]: # "you may not use this file except in compliance with the License."
Expand Down Expand Up @@ -39,7 +39,7 @@ This app integrates with Splunk to update data on the device, in addition to inv
## Splunk-SDK

This app uses the Splunk-SDK module, which is licensed under the Apache Software License, Copyright
(c) 2011-2019 Splunk, Inc.
(c) 2011-2024 Splunk, Inc.

## State File Permissions

Expand All @@ -54,9 +54,21 @@ Please check the permissions for the state file as mentioned below.

#### State File Permissions

- File Rights: rw-rw-r-- (664) (The phantom user should have read and write access for the state
- File Rights: rw-rw-r-- (664) (The Splunk SOAR user should have read and write access for the state
file)
- File Owner: appropriate phantom user
- File Owner: appropriate Splunk SOAR user

## Required Permissions for Post Data Action
The endpoint used by the post data action is not supported on Splunk Cloud Platform. Hence, the following steps are not applicable for Splunk Cloud Platform.

For sending events to Splunk Platform, the User configured in the asset would require **edit_tcp** capability. Follow the below steps to configure

- Login to the Splunk Platform
- Go to **Setting > Roles**
- Click on role of the user configured in the asset(example: user) and go to **Capabilities**
- Search for '**edit_tcp**' in the capabilities enable it for the particular role
- To check if the capability is given to your user, go to **Settings > Users** and in the **Edit dropdown** and select **View Capabilities**
- Search for '**edit_tcp**' and if a tick besides it appears then the permission has been enabled for the user

## Asset Configuration Parameters

Expand Down Expand Up @@ -464,51 +476,51 @@ action_result.parameter.start_time | string | | -2d 2022-03-18T16:12:07.130+
action_result.data.\*._bkt | string | |
action_result.data.\*._cd | string | |
action_result.data.\*._indextime | string | |
action_result.data.\*._key | string | | 1659398400|_audit
action_result.data.\*._kv | string | |
action_result.data.\*._key | string | | user
action_result.data.\*._kv | string | | 1
action_result.data.\*._origtime | string | | 1659398400
action_result.data.\*._raw | string | |
action_result.data.\*._serial | string | |
action_result.data.\*._si | string | |
action_result.data.\*._sourcetype | string | |
action_result.data.\*._subsecond | string | |
action_result.data.\*._subsecond | string | | .427
action_result.data.\*._time | string | |
action_result.data.\*._value | string | | 184
action_result.data.\*.a | string | |
action_result.data.\*.a | string | | abc
action_result.data.\*.content.app | string | | search
action_result.data.\*.content.host | string | |
action_result.data.\*.content.info | string | |
action_result.data.\*.content.search | string | |
action_result.data.\*.content.search_type | string | |
action_result.data.\*.content.sid | string | |
action_result.data.\*.content.source | string | |
action_result.data.\*.content.sourcetype | string | |
action_result.data.\*.content.host | string | | test
action_result.data.\*.content.info | string | | granted
action_result.data.\*.content.search | string | | index = main
action_result.data.\*.content.search_type | string | | adhoc
action_result.data.\*.content.sid | string | | 1621953839.25275
action_result.data.\*.content.source | string | | source
action_result.data.\*.content.sourcetype | string | | source
action_result.data.\*.content.uri | string | | /en-US/app/search/search?q=search%20index%3Dmain%20%7C%20head%2010&sid=1651356328.532450&display.page.search.mode=smart&dispatch.sample_ratio=1&workload_pool=&earliest=-24h%40h&latest=now
action_result.data.\*.content.view | string | | search
action_result.data.\*.count | string | |
action_result.data.\*.count(host) | string | |
action_result.data.\*.count | string | | 3058733
action_result.data.\*.count(host) | string | | 28
action_result.data.\*.event | string | | {"data": {"count": 3, "size": 112, "transform": "access_app_tracker"}, "version": "1.0"}
action_result.data.\*.host | string | `host name` | 10.1.67.187:8088
action_result.data.\*.index | string | |
action_result.data.\*.is_Acceleration_Jobs | string | |
action_result.data.\*.is_Adhoc_Jobs | string | |
action_result.data.\*.is_Failed_Jobs | string | |
action_result.data.\*.is_Realtime_Jobs | string | |
action_result.data.\*.is_Scheduled_Jobs | string | |
action_result.data.\*.is_Subsearch_Jobs | string | |
action_result.data.\*.is_not_Acceleration_Jobs | string | |
action_result.data.\*.is_not_Adhoc_Jobs | string | |
action_result.data.\*.is_not_Failed_Jobs | string | |
action_result.data.\*.is_not_Realtime_Jobs | string | |
action_result.data.\*.is_not_Scheduled_Jobs | string | |
action_result.data.\*.is_not_Subsearch_Jobs | string | |
action_result.data.\*.is_Acceleration_Jobs | string | | 0
action_result.data.\*.is_Adhoc_Jobs | string | | 1
action_result.data.\*.is_Failed_Jobs | string | | 0
action_result.data.\*.is_Realtime_Jobs | string | | 0
action_result.data.\*.is_Scheduled_Jobs | string | | 0
action_result.data.\*.is_Subsearch_Jobs | string | | 0
action_result.data.\*.is_not_Acceleration_Jobs | string | | 1
action_result.data.\*.is_not_Adhoc_Jobs | string | | 0
action_result.data.\*.is_not_Failed_Jobs | string | | 1
action_result.data.\*.is_not_Realtime_Jobs | string | | 1
action_result.data.\*.is_not_Scheduled_Jobs | string | | 1
action_result.data.\*.is_not_Subsearch_Jobs | string | | 1
action_result.data.\*.linecount | string | |
action_result.data.\*.source | string | |
action_result.data.\*.sourcetype | string | |
action_result.data.\*.spent | string | | 223
action_result.data.\*.splunk_server | string | `host name` |
action_result.data.\*.user | string | |
action_result.data.\*.values(source) | string | |
action_result.data.\*.user | string | | admin
action_result.data.\*.values(source) | string | | /opt/splunk/var/log/splunk/scheduler.log
action_result.summary.sid | string | | 1612177958.977510
action_result.summary.total_events | numeric | | 2
action_result.message | string | | Sid: 1612177958.977510, Total events: 2
Expand Down Expand Up @@ -561,7 +573,7 @@ Post data to Splunk
Type: **generic**
Read only: **False**

This action creates an event on Splunk with the data included in the <b>data</b> parameter. If not specified the parameters will default to the following:<ul><li><b>host</b> - The IP of the Phantom instance running the action.</li><li><b>index</b> - The default index configured on the Splunk instance.</li><li><b>source</b> - &quot;Phantom&quot;.</li><li><b>source_type</b> - &quot;Automation/Orchestration Platform&quot;.</li></ul>
This action creates an event on Splunk with the data included in the <b>data</b> parameter. If not specified the parameters will default to the following:<ul><li><b>host</b> - The IP of the Splunk SOAR instance running the action.</li><li><b>index</b> - The default index configured on the Splunk instance.</li><li><b>source</b> - &quot;Phantom&quot;.</li><li><b>source_type</b> - &quot;Automation/Orchestration Platform&quot;.</li></ul>

#### Action Parameters
PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: __init__.py
#
# Copyright (c) 2016-2023 Splunk Inc.
# Copyright (c) 2016-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
20 changes: 16 additions & 4 deletions manual_readme_content.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[comment]: # " File: README.md"
[comment]: # " Copyright (c) 2016-2023 Splunk Inc."
[comment]: # " Copyright (c) 2016-2024 Splunk Inc."
[comment]: # ""
[comment]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[comment]: # "you may not use this file except in compliance with the License."
Expand Down Expand Up @@ -27,7 +27,7 @@
## Splunk-SDK

This app uses the Splunk-SDK module, which is licensed under the Apache Software License, Copyright
(c) 2011-2019 Splunk, Inc.
(c) 2011-2024 Splunk, Inc.

## State File Permissions

Expand All @@ -42,9 +42,21 @@ Please check the permissions for the state file as mentioned below.

#### State File Permissions

- File Rights: rw-rw-r-- (664) (The phantom user should have read and write access for the state
- File Rights: rw-rw-r-- (664) (The Splunk SOAR user should have read and write access for the state
file)
- File Owner: appropriate phantom user
- File Owner: appropriate Splunk SOAR user

## Required Permissions for Post Data Action
The endpoint used by the post data action is not supported on Splunk Cloud Platform. Hence, the following steps are not applicable for Splunk Cloud Platform.

For sending events to Splunk Platform, the User configured in the asset would require **edit_tcp** capability. Follow the below steps to configure

- Login to the Splunk Platform
- Go to **Setting > Roles**
- Click on role of the user configured in the asset(example: user) and go to **Capabilities**
- Search for '**edit_tcp**' in the capabilities enable it for the particular role
- To check if the capability is given to your user, go to **Settings > Users** and in the **Edit dropdown** and select **View Capabilities**
- Search for '**edit_tcp**' and if a tick besides it appears then the permission has been enabled for the user

## Asset Configuration Parameters

Expand Down
3 changes: 3 additions & 0 deletions release_notes/2.16.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Documentation update for steps to allow edit_tcp capability for a user [PAPP-31540]
* Bug fix for 'on poll' cef field names [PAPP-30430]
* Bug fix for accessing vault temp directory path [PAPP-32416]
Loading
Loading