JSONtoCSV

Convert a JSON War Room output via EntryID to a CSV file.

python · Common Scripts

Details

IDJSONtoCSV
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775

README

Convert a JSON War Room output via EntryID to a CSV file.

Script Data


Name Description
Script Type python3
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
entryid Entry id of json
delimiter CSV Delimiter.
filename If provided will output CSV to file. Default output is to War Room.

Outputs


Path Description Type
File.Name Filename (only in case of report type=json) Unknown
File.Type File type e.g. “PE” (only in case of report type=json) Unknown
File.Size File size (only in case of report type=json) Unknown
File.MD5 MD5 hash of the file (only in case of report type=json) Unknown
File.SHA1 SHA1 hash of the file (only in case of report type=json) Unknown
File.SHA256 SHA256 hash of the file (only in case of report type=json) Unknown
commonfields:
  id: JSONtoCSV
  version: -1
name: JSONtoCSV
script: ''
type: python
subtype: python3
tags: []
comment: Convert a JSON War Room output via EntryID to a CSV file.
enabled: true
args:
- name: entryid
  required: true
  description: Entry id of json.
  isArray: true
- name: delimiter
  default: true
  description: CSV Delimiter.
  defaultValue: '|'
- name: filename
  description: If provided will output CSV to file. Default output is to War Room.
outputs:
- contextPath: File.Name
  description: Filename (only in case of report type=json).
- contextPath: File.Type
  description: File type e.g. "PE" (only in case of report type=json).
- contextPath: File.Size
  description: File size (only in case of report type=json).
- contextPath: File.MD5
  description: MD5 hash of the file (only in case of report type=json).
- contextPath: File.SHA1
  description: SHA1 hash of the file (only in case of report type=json).
- contextPath: File.SHA256
  description: SHA256 hash of the file (only in case of report type=json).
scripttarget: 0
tests:
- JSONtoCSV-Test
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10404775