Skip to content

[CDTOOL-1699] Add Log Explorer and Insights CLI commands - #1887

Merged
rcaril merged 4 commits into
fastly:mainfrom
philippschulte:pschulte/cdtool-1699_log-explorer-insights-cli
Sep 11, 2026
Merged

rcaril merged 4 commits into
fastly:mainfrom
philippschulte:pschulte/cdtool-1699_log-explorer-insights-cli

Conversation

@philippschulte

Copy link
Copy Markdown
Member

Change summary

Adds fastly service logging log-explorer and fastly service logging insights commands with service scoping, filtering, pagination, visualization options, JSON/human-readable output, and test coverage.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

@philippschulte

Copy link
Copy Markdown
Member Author

This pull request depends on fastly/go-fastly#851 and fastly/go-fastly#853.

@philippschulte
philippschulte force-pushed the pschulte/cdtool-1699_log-explorer-insights-cli branch from 0aa1998 to c910597 Compare August 24, 2026 21:07
@philippschulte
philippschulte marked this pull request as ready for review August 24, 2026 21:33
@philippschulte
philippschulte requested a review from a team as a code owner August 24, 2026 21:33
@philippschulte
philippschulte requested review from jedisct1, kpfleming and rcaril and removed request for jedisct1 August 24, 2026 21:33

@kpfleming kpfleming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good, but I've requested some changes for consistency with other commands in the CLI.

Comment thread pkg/commands/service/logging/insights/root.go Outdated
Comment thread pkg/commands/service/logging/logexplorer/root.go Outdated
…an flag

Addresses PR review feedback: the flag took a string [true, false]
value.  Switched to a bare --domain-exact-match flag matching the CLI proposal spec.
Addresses PR review feedback: users shouldn't have to extract cursor
values from output and pass them to subsequent commands. Drop --limit
and --cursor and instead loop internally, requesting the max page size
and following next_cursor until exhausted, so a single invocation
returns the full result set bounded by --start/--end/--filter.
@rcaril
rcaril requested a review from kpfleming September 11, 2026 19:27

@anthony-gomez-fastly anthony-gomez-fastly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rcaril
rcaril dismissed kpfleming’s stale review September 11, 2026 20:01

Changes made as requested.

@rcaril
rcaril merged commit fa700ff into fastly:main Sep 11, 2026
9 checks passed
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.

4 participants