Skip to main content

Camlytics

This Integration is part of the Camlytics Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

You can use this integration to automate different Camlytics surveillance analysis actions. This integration was integrated and tested with version 2.2.5 of Camlytics.

Configure Camlytics in Cortex#

ParameterRequired
Server URLTrue
Use system proxy settingsFalse
Trust any certificate (not secure)False

Commands#

You can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

camlytics-get-channels#


Retrieve video channels

Base Command#

camlytics-get-channels

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Camlytics.Channels.channel_idStringThe channel ID.
Camlytics.Channels.nameStringThe channel name.
Camlytics.Channels.typeStringThe channel type.
Camlytics.Channels.stream_uriStringThe channel stream_ur.
Camlytics.Channels.loginStringThe channel login.
Camlytics.Channels.passwordStringThe channel password.
Camlytics.Channels.uriStringThe channel uri.
Camlytics.Channels.profile_nameStringThe channel profile.
Camlytics.Channels.profile_tokenStringThe channel profile token.

Command example#

!camlytics-get-channels

Context Example#

{
"Camlytics": {
"Channels": [
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"login": null,
"name": "Springs",
"password": null,
"profile_name": "none",
"profile_token": "",
"stream_uri": "C:\\Users\\hussain\\Desktop\\Test Video.mp4",
"type": "File",
"uri": "http://localhost/"
},
{
"channel_id": "8c27e658-cfee-4801-b1f7-29626ce45afc",
"login": null,
"name": "Video file",
"password": null,
"profile_name": "none",
"profile_token": "",
"stream_uri": "C:\\Users\\hussain\\Desktop\\Test Video - Copy.mp4",
"type": "File",
"uri": "http://localhost/"
}
]
}
}

Human Readable Output#

Results#

channel_idloginnamepasswordprofile_nameprofile_tokenstream_uritypeuri
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9SpringsnoneC:\Users\hussain\Desktop\Test Video.mp4Filehttp://localhost/
8c27e658-cfee-4801-b1f7-29626ce45afcVideo filenoneC:\Users\hussain\Desktop\Test Video - Copy.mp4Filehttp://localhost/

camlytics-get-events-totals-by-rule#


Retrieve video analytics events totals grouped by calibration rules, these rules can be defined using zones and lines to set areas where different camera events will be generated. For example, you can add zone where you want signalize all of all entered objects, line where you want to count people, etc.

Base Command#

camlytics-get-events-totals-by-rule

Input#

Argument NameDescriptionRequired
channelidThe channel ID.Optional
sincetimeThe since time.Optional
untiltimeThe until time.Optional
originThe origin that generated the events. For example, if you want to display only vehicles events and skip pedestrians in your report, choose Vehicle. Possible values are: Pedestrians, Vehicle, Uknown.Optional

Context Output#

PathTypeDescription
Camlytics.EventsTotalsRule.channel_idStringThe channel ID.
Camlytics.EventsTotalsRule.rule_countNumberThe rule count.
Camlytics.EventsTotalsRule.rule_idStringThe rule ID.
Camlytics.EventsTotalsRule.rule_nameStringThe rule name.

Command example#

!camlytics-get-events-totals-by-rule

Context Example#

{
"Camlytics": {
"EventsTotalsRule": [
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"rule_count": 47,
"rule_id": "-1",
"rule_name": ""
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"rule_count": 4,
"rule_id": "18413998-0ab9-44ba-a90c-5d0ce844abff",
"rule_name": "Motion detection"
},
{
"channel_id": "8c27e658-cfee-4801-b1f7-29626ce45afc",
"rule_count": 9,
"rule_id": "-1",
"rule_name": ""
},
{
"channel_id": "8c27e658-cfee-4801-b1f7-29626ce45afc",
"rule_count": 1,
"rule_id": "2ec821ed-3fb5-4b0b-aab9-3f600c05914c",
"rule_name": "Motion detection"
}
]
}
}

Human Readable Output#

Results#

channel_idrule_countrule_idrule_name
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b947-1
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9418413998-0ab9-44ba-a90c-5d0ce844abffMotion detection
8c27e658-cfee-4801-b1f7-29626ce45afc9-1
8c27e658-cfee-4801-b1f7-29626ce45afc12ec821ed-3fb5-4b0b-aab9-3f600c05914cMotion detection

camlytics-get-events-totals-by-type#


Retrieve video analytics events totals grouped by analytics event type. For example: ObjectAppear, Tailgating, Sabotage and TripwireCrossed.

Base Command#

camlytics-get-events-totals-by-type

Input#

Argument NameDescriptionRequired
channelidThe channel ID.Optional
sincetimeThe since time.Optional
untiltimeThe until time.Optional
originThe origin that generated the events. For example, if you want to display only vehicles events and skip pedestrians in your report, choose Vehicle. Possible values are: Pedestrians, Vehicle, Uknown.Optional

Context Output#

PathTypeDescription
Camlytics.EventsTotalsType.channel_idStringThe channel ID.
Camlytics.EventsTotalsType.typeStringThe event type. For example: ObjectAppear, Tailgating, Sabotage and TripwireCrossed.
Camlytics.EventsTotalsType.type_countNumberThe type count.

Command example#

!camlytics-get-events-totals-by-type channelid=09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9 origin=Pedestrian

Context Example#

{
"Camlytics": {
"EventsTotalsType": [
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"type": "ObjectAppear",
"type_count": 4
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"type": "ObjectDisappear",
"type_count": 3
}
]
}
}

Human Readable Output#

Results#

channel_idtypetype_count
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9ObjectAppear4
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9ObjectDisappear3

camlytics-get-events#


Retrieve video analytics events ordered by event id.

Base Command#

camlytics-get-events

Input#

Argument NameDescriptionRequired
channelidThe channel ID.Optional
sinceidThe since ID.Optional
sincetimeThe since time.Optional
untilidThe until ID.Optional
untiltimeThe until time.Optional
limitThe limit.Optional
orderThe order.Optional
timeoutThe timeout.Optional

Context Output#

PathTypeDescription
Camlytics.Events.event_idStringThe event ID.
Camlytics.Events.typeStringThe event type.
Camlytics.Events.timeStringThe event time.
Camlytics.Events.timestampStringThe event timestamp.
Camlytics.Events.channel_idStringThe event channel id.
Camlytics.Events.channel_nameStringThe event channel name.
Camlytics.Events.object_idStringThe event object id.
Camlytics.Events.originStringThe event origin.
Camlytics.Events.rule_idStringThe event rule id.
Camlytics.Events.rule_nameStringThe event rule name.
Camlytics.Events.snapshot_pathStringThe event snapshot path.
Camlytics.Events.recording_pathStringThe event recording path.
Camlytics.Events.video_file_nameStringThe event video file name.
Camlytics.Events.video_file_timeDateThe event video file time.

Command example#

!camlytics-get-events channelid="09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9" limit="10"

Context Example#

{
"Camlytics": {
"Events": [
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 70,
"object_id": "-1",
"origin": "Unknown",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:25.4330000",
"timestamp": "1.877",
"type": "Sabotage",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:11.8770000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 71,
"object_id": "1",
"origin": "Unknown",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:32.5630000",
"timestamp": "3.545",
"type": "ObjectAppear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:13.5470000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 72,
"object_id": "1",
"origin": "Unknown",
"recording_path": "",
"rule_id": "18413998-0ab9-44ba-a90c-5d0ce844abff",
"rule_name": "Motion detection",
"snapshot_path": "C:\\Users\\hussain\\AppData\\Roaming\\Camlytics\\Data\\09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9\\Snapshots\\MotionInRegionOn 1 2022-01-19 16-21-13-546.jpg",
"time": "2022-01-19T16:22:32.5630000",
"timestamp": "3.545",
"type": "MotionInRegionOn",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:13.5470000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 73,
"object_id": "2",
"origin": "Unknown",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:32.3670000",
"timestamp": "3.504",
"type": "ObjectAppear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:13.5030000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 74,
"object_id": "3",
"origin": "Unknown",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:32.4470000",
"timestamp": "3.67",
"type": "ObjectAppear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:13.6700000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 75,
"object_id": "3",
"origin": "Unknown",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:33.6030000",
"timestamp": "5.005",
"type": "ObjectDisappear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:15.0070000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 76,
"object_id": "2",
"origin": "Unknown",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:33.6030000",
"timestamp": "5.005",
"type": "ObjectDisappear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:15.0070000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 77,
"object_id": "5",
"origin": "Vehicle",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:32.8100000",
"timestamp": "4.213",
"type": "ObjectAppear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:14.2130000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 78,
"object_id": "4",
"origin": "Vehicle",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:32.1430000",
"timestamp": "3.545",
"type": "ObjectAppear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:13.5470000"
},
{
"channel_id": "09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9",
"channel_name": null,
"event_id": 79,
"object_id": "1",
"origin": "Unknown",
"recording_path": "",
"rule_id": "-1",
"rule_name": "",
"snapshot_path": "",
"time": "2022-01-19T16:22:33.8930000",
"timestamp": "5.589",
"type": "ObjectDisappear",
"video_file_name": "Test Video.mp4",
"video_file_time": "2022-01-19T16:21:15.5900000"
}
]
}
}

Human Readable Output#

Results#

channel_idchannel_nameevent_idobject_idoriginrecording_pathrule_idrule_namesnapshot_pathtimetimestamptypevideo_file_namevideo_file_time
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b970-1Unknown-12022-01-19T16:22:25.43300001.877SabotageTest Video.mp42022-01-19T16:21:11.8770000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9711Unknown-12022-01-19T16:22:32.56300003.545ObjectAppearTest Video.mp42022-01-19T16:21:13.5470000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9721Unknown18413998-0ab9-44ba-a90c-5d0ce844abffMotion detectionC:\Users\hussain\AppData\Roaming\Camlytics\Data\09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9\Snapshots\MotionInRegionOn 1 2022-01-19 16-21-13-546.jpg2022-01-19T16:22:32.56300003.545MotionInRegionOnTest Video.mp42022-01-19T16:21:13.5470000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9732Unknown-12022-01-19T16:22:32.36700003.504ObjectAppearTest Video.mp42022-01-19T16:21:13.5030000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9743Unknown-12022-01-19T16:22:32.44700003.67ObjectAppearTest Video.mp42022-01-19T16:21:13.6700000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9753Unknown-12022-01-19T16:22:33.60300005.005ObjectDisappearTest Video.mp42022-01-19T16:21:15.0070000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9762Unknown-12022-01-19T16:22:33.60300005.005ObjectDisappearTest Video.mp42022-01-19T16:21:15.0070000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9775Vehicle-12022-01-19T16:22:32.81000004.213ObjectAppearTest Video.mp42022-01-19T16:21:14.2130000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9784Vehicle-12022-01-19T16:22:32.14300003.545ObjectAppearTest Video.mp42022-01-19T16:21:13.5470000
09ed1f1f-63fe-41d9-8e4a-f4909f94f2b9791Unknown-12022-01-19T16:22:33.89300005.589ObjectDisappearTest Video.mp42022-01-19T16:21:15.5900000