Skip to content

Add code and script to generate and import 250 security events#56

Merged
mraible merged 2 commits intomainfrom
collections-pagination
Sep 10, 2025
Merged

Add code and script to generate and import 250 security events#56
mraible merged 2 commits intomainfrom
collections-pagination

Conversation

@mraible
Copy link
Contributor

@mraible mraible commented Sep 9, 2025

Usage:

cd foundry-sample-collections-toolkit/functions

# Generate a bunch of events in a CSV file
python generate_security_events.py

# Set env variables; app must be deployed for ID
cd csv-import
export APP_ID=...

# Make sure your API client has CustomStorage scope
export FALCON_CLIENT_ID=... 
export FALCON_CLIENT_SECRET...

# Run function
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt --upgrade pip
python main.py

# Open a new terminal, and navigate to the functions directory 
# Import the CSV file to your collection
sh import-large-events.sh

@mraible mraible merged commit 4ea4c94 into main Sep 10, 2025
11 checks passed
@mraible mraible deleted the collections-pagination branch September 10, 2025 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant