MCPVault

query_logs

MCP tool from Fortianalyzer MCP by rstierli

Query logs, or aggregate them: rows plus a reusable pagination handle, or groupby / sampleby / countonly (see below)

How to use it

query_logs is exposed by the Fortianalyzer MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the query_logs tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Fortianalyzer MCP

$pip install -e .
FULL FORTIANALYZER MCP LISTING

Other tools in Fortianalyzer MCP (39)

add_device

Add a new device to FortiAnalyzer

add_devices_bulk

Add multiple devices at once

cancel_log_search

Release a pagination handle

delete_device

Remove a device from FortiAnalyzer

delete_devices_bulk

Remove multiple devices at once

fetch_fortiview

Fetch FortiView query results

fetch_more_logs

Fetch another page for a querylogs handle (re-runs the query at a new offset)

fetch_report

Check report generation status

get_adom

Get specific ADOM details

get_alerts

Get security alerts

get_api_ratelimit

Get API rate limiting configuration (FAZ 7.6.5+)

get_device

Get specific device information

get_device_info

Get detailed device information

get_fortiview_data

Run FortiView and get results (auto-wait)

get_ha_status

Get High Availability cluster status

get_log_fields

Get available log fields for a log type

get_log_search_progress

Check log search progress

get_log_stats

Get log statistics

get_logfiles_state

Get log file state information

get_pcap_file

Download PCAP file for an IPS event

get_report_data

Download completed report data

get_report_history

Get report generation history

get_running_reports

List currently running reports

get_system_status

Get FortiAnalyzer system status and version info

get_task

Get task details by ID

list_adoms

List all Administrative Domains

list_device_groups

List device groups in an ADOM

list_device_vdoms

List VDOMs for a device

list_devices

List devices in an ADOM

list_report_layouts

List available report layouts

list_report_templates

List available report templates

list_tasks

List background tasks

run_and_wait_report

Run report and wait for completion

run_fortiview

Start a FortiView analytics query

run_report

Start a report generation

save_report

Download and save report to disk

search_devices

Search devices with filters

update_api_ratelimit

Update API rate limits (FAZ 7.6.5+)

wait_for_task

Wait for a task to complete