You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+84Lines changed: 84 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,20 @@
5
5
## Overview
6
6
The CrowdSec Splunk app leverages the CrowdSec's CTI API's smoke endpoint which enables users to query an IP and receive enrichment
7
7
8
+
9
+
## Table of Contents
10
+
-[Overview](#overview)
11
+
-[Example Usage](#example-usage)
12
+
-[Results](#results)
13
+
-[Profiles](#profiles)
14
+
-[Local Dump](#local-dump)
15
+
-[Configuration file](#configuration-file)
16
+
-[`api_key`](#api_key)
17
+
-[`batching`](#batching)
18
+
-[`batch_size`](#batch_size)
19
+
-[`local_dump`](#local_dump)
20
+
21
+
8
22
## Example Usage
9
23
10
24
The following command is used to run an IP check through the CrowdSec's CTI API's smoke endpoint. On the Homepage of Splunk Web Interface, select `Search & Reporting` and use the following command.
@@ -19,7 +33,77 @@ The following command is used to run an IP check through the CrowdSec's CTI API'
19
33
-`ipfield`:
20
34
- It denotes the field name where the IP address is stored in the index.
21
35
36
+
-`profile`:
37
+
Optional preset that selects a predefined set of CrowdSec output fields (it is possible to specify mutliple profiles).
38
+
22
39
## Results
23
40
On the event of clicking the `Search` button, users will be able to view a brief overview of various fields associated with the input IP address.
24
41
25
42
This includes but not limited to location, behaviors, classifications, attack details – name, label, description, references followed by scores, threats, etc.
43
+
44
+
## Profiles
45
+
46
+
Profiles are optional presets that automatically select a predefined set of CrowdSec output fields, so results stay consistent and you don’t have to manually maintain long `ipfield=` lists.
The output will contains the columns for the `anonymous` and the `iprange` profiles.
61
+
62
+
## Local Dump
63
+
64
+
The first time you setup the local dump feature, you need to download manually the CrowdSec lookup databases (they will be updated every 24h automatically after that):
65
+
66
+
```
67
+
| cssmokedownload
68
+
```
69
+
70
+
After that, you can look up IPs using the local databases.
71
+
72
+
**Note:** Check the `query_time` and `query_mode` fields in the results to confirm whether lookups are done via `local_dump` or the live API.
73
+
74
+
## Configuration file
75
+
76
+
You can configure the CrowdSec app by uploading a JSON configuration file:
77
+
78
+
```
79
+
{
80
+
"api_key": "YOUR_API_KEY_HERE",
81
+
"batching": true|false,
82
+
"batch_size": 20,
83
+
"local_dump": true|false
84
+
}
85
+
```
86
+
87
+
### `api_key`
88
+
89
+
CrowdSec CTI API key.
90
+
91
+
**Warning:** Local dump and live CTI API lookups are mutually exclusive (enable only one mode).
92
+
93
+
### `batching`
94
+
95
+
Enable batching for live CTI API lookups.
96
+
97
+
### `batch_size`
98
+
99
+
Batch size used when `batching` is enabled.
100
+
101
+
### `local_dump`
102
+
103
+
Enable local dump mode (use the downloaded lookup databases).
104
+
105
+
Lookup databases are download automatically every 24h.
106
+
107
+
**Warning:** Local dump requires a CTI API key that has access to the dump endpoint.
0 commit comments