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

Placeholder for datadog certificate changed #782

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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
12 changes: 6 additions & 6 deletions stix_shifter_modules/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Uses the data source API to ping the connection

CLI command example:
```
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": False}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' ping
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": false}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' ping
```
If connection establish returns the following response:
```
Expand All @@ -207,7 +207,7 @@ Queries the data source API with the translated query and returns the search id

CLI command example:
```
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": False}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' query "{\"query\": {\"tags\": \"account\", \"start\": 1627207221, \"end\": 1629972021}, \"source\": \"events\"}"
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": false}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' query "{\"query\": {\"tags\": \"account\", \"start\": 1627207221, \"end\": 1629972021}, \"source\": \"events\"}"
```

If successful, will return the following response:
Expand All @@ -224,7 +224,7 @@ Uses the data source API to fetch the query results based on the search ID, offs

CLI Command example for events dialect:
```
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": False}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' results "{\"query\": {\"tags\": \"account\", \"start\": 1627207221, \"end\": 1629972021}, \"source\": \"events\"}" <OFFSET> <LENGTH>
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": false}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' results "{\"query\": {\"tags\": \"account\", \"start\": 1627207221, \"end\": 1629972021}, \"source\": \"events\"}" <OFFSET> <LENGTH>
```
Returns following result
```json
Expand Down Expand Up @@ -252,7 +252,7 @@ Returns following result

CLI Command example for processes dialect:
```
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": False}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' results "{\"query\": {\"pid\": 92, \"start\": 1627207221, \"end\": 1629972021}, \"source\": \"processes\"}" <OFFSET> <LENGTH>
python3 main.py transmit datadog '{"site_url": <site_url>, "selfSignedCert": false}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' results "{\"query\": {\"pid\": 92, \"start\": 1627207221, \"end\": 1629972021}, \"source\": \"processes\"}" <OFFSET> <LENGTH>
```
Returns following result
```json
Expand Down Expand Up @@ -285,7 +285,7 @@ defined in the `to_stix_map.json` file.

CLI Command example for events dialect:
```
python3 main.py execute datadog:events datadog:events '{"type": "identity","id": "identity--f431f809-377b-45e0-aa1c-6a4751cae5ff","name": "datadog","identity_class": "events"}' {"site_url": <site_url>, "selfSignedCert": False}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' "[x-datadog-event:tags = 'account'] START t'2021-09-19T00:00:00.000Z' STOP t'2021-09-24T00:00:00.000Z'"
python3 main.py execute datadog:events datadog:events '{"type": "identity","id": "identity--f431f809-377b-45e0-aa1c-6a4751cae5ff","name": "datadog","identity_class": "events"}' {"site_url": <site_url>, "selfSignedCert": false}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' "[x-datadog-event:tags = 'account'] START t'2021-09-19T00:00:00.000Z' STOP t'2021-09-24T00:00:00.000Z'"
```

If successful, will return the following response
Expand Down Expand Up @@ -347,7 +347,7 @@ STIX Results:

CLI Command example for processes dialect:
```
python3 main.py execute datadog:processes datadog:processes '{"type": "identity","id": "identity--f431f809-377b-45e0-aa1c-6a4751cae5ff","name": "datadog","identity_class": "events"}' {"site_url": <site_url>, "selfSignedCert": False}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' "[domain-name:value = 'win10vm4'] START t'2021-09-19T00:00:00.000Z' STOP t'2021-09-24T00:00:00.000Z'"
python3 main.py execute datadog:processes datadog:processes '{"type": "identity","id": "identity--f431f809-377b-45e0-aa1c-6a4751cae5ff","name": "datadog","identity_class": "events"}' {"site_url": <site_url>, "selfSignedCert": false}' '{ "auth": { "api_key": <api_key>, "application_key": <application_key>}}' "[domain-name:value = 'win10vm4'] START t'2021-09-19T00:00:00.000Z' STOP t'2021-09-24T00:00:00.000Z'"
```

If successful, will return the following response
Expand Down
2 changes: 1 addition & 1 deletion stix_shifter_modules/datadog/configuration/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"selfSignedCert": {
"type": "password",
"optional": true
"optional": false
mdazam1942 marked this conversation as resolved.
Show resolved Hide resolved
},
"help": {
"type": "link",
Expand Down
2 changes: 1 addition & 1 deletion stix_shifter_modules/datadog/configuration/lang_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"selfSignedCert": {
"label": "Datadog Certificate",
"placeholder": "Paste your certificate"
"placeholder": "Paste your certificate else put 'false'"
mdazam1942 marked this conversation as resolved.
Show resolved Hide resolved
},
"help": {
"label": "Need additional help?",
Expand Down