nadolskimm-max/sf-skills/sf-event-monitoring

Claude Code and agent skill by nadolskimm-max/sf-skills

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Configures and analyzes Salesforce Event Monitoring including login history, EventLogFiles, real-time events, and Shield Event Monitoring. Use when investigating security events, analyzing user login patterns, monitoring API usage, setting up transaction security policies, or building audit compliance reports. Do NOT use for debug logs (use sf-debug) or general reporting (use sf-reporting).

Install

npx vskill@latest install nadolskimm-max/sf-skills/sf-event-monitoring

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-event-monitoring.

Event Monitoring

Core Responsibilities

  1. Query and analyze EventLogFiles (ELF)
  2. Monitor login events and session management
  3. Configure Transaction Security policies
  4. Set up real-time event streaming
  5. Build compliance and audit reports

EventLogFile Types

Event TypeDescriptionUse Case
LoginUser login attemptsFailed login detection
LogoutUser logoutsSession analysis
APIAPI callsUsage monitoring
ApexExecutionApex class executionPerformance analysis
ApexTriggerTrigger executionTrigger performance
ReportReport executionReport usage audit
ReportExportReport export eventsData exfiltration detection
URIPage view eventsUI usage patterns
LightningPageViewLightning page viewsLightning adoption
ApiTotalUsageAPI limits trackingLimit management
BulkApiBulk API operationsData load monitoring
ContentDistributionFile sharingDocument access audit

Querying EventLogFiles

Basic ELF Query
sql
SELECT Id, EventType, LogDate, LogFileLength, LogFile
FROM EventLogFile
WHERE EventType = 'Login'
AND LogDate >= LAST_N_DAYS:7
ORDER BY LogDate DESC
Download Log File
bash
# List available log files
sf data query --query "SELECT Id, EventType, LogDate FROM EventLogFile WHERE LogDate = TODAY" --target-org <alias>
# Download specific log
sf data get record --sobject EventLogFile --record-id <logId> --target-org <alias>
Analyze Login Events
sql
-- Failed logins in last 7 days
SELECT Id, EventType, LogDate
FROM EventLogFile
WHERE EventType = 'Login'
AND LogDate >= LAST_N_DAYS:7
-- After downloading CSV, look for:
-- LOGIN_STATUS != 'LOGIN_NO_ERROR'
-- CLIENT_IP for suspicious locations
-- BROWSER_TYPE for unusual user agents

Real-Time Events (Shield)

Event Types
EventDescription
LoginEventReal-time login stream
LogoutEventReal-time logout stream
ApiEventAPI usage in real-time
ReportEventReport access in real-time
ListViewEventList view access
SessionHijackingEventPotential session hijack
CredentialStuffingEventBrute force login attempts
Subscribe via Apex Trigger
apex
trigger LoginEventTrigger on LoginEvent (after insert) {
List<Security_Alert__c> alerts = new List<Security_Alert__c>();
for (LoginEvent event : Trigger.new) {
if (event.LoginType == 'Remote Access 2.0' &&
event.Status != 'Success') {
alerts.add(new Security_Alert__c(
Event_Type__c = 'Failed API Login',
User__c = event.UserId,
IP_Address__c = event.SourceIp,
Details__c = 'Failed login from ' + event.City + ', ' + event.Country
));
}
}
if (!alerts.isEmpty()) {
insert alerts;
}
}

Transaction Security Policies

Automated responses to security events:

ConditionAction
Login from blocked countryBlock
Report export > 10k recordsRequire MFA
API calls > thresholdNotify admin
Session from new deviceNotify user
Bulk data exportRequire approval
Policy Setup
bash
# Query existing policies
sf data query --query "SELECT Id, DeveloperName, State, EventType FROM TransactionSecurityPolicy" --target-org <alias> --use-tooling-api

Compliance Audit Queries

sql
-- Users who exported reports this month
SELECT Id, EventType, LogDate
FROM EventLogFile
WHERE EventType = 'ReportExport'
AND LogDate = THIS_MONTH
-- API usage by integration user
SELECT Id, EventType, LogDate
FROM EventLogFile
WHERE EventType = 'API'
AND LogDate >= LAST_N_DAYS:30
-- Login history for specific user
SELECT LoginTime, SourceIp, LoginType, Status, Browser, Platform
FROM LoginHistory
WHERE UserId = :userId
ORDER BY LoginTime DESC
LIMIT 100

Prerequisites

FeatureRequired License
EventLogFile (24hr retention)Included in Enterprise+
EventLogFile (30-day retention)Shield or Event Monitoring add-on
Real-Time EventsShield Platform
Transaction SecurityShield Platform
Field Audit TrailShield Platform

Cross-Skill References

  • For debug log analysis: see sf-debug
  • For security configuration: see sf-security
  • For compliance reports: see sf-reporting
  • For Platform Event triggers: see sf-integration

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nadolskimm-max/sf-skills/sf-event-monitoring/badge)](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-event-monitoring)

Something wrong with this skill or its page? Tell us.