cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

extend debug.zip file filters to accept directory paths

Open aa-joshi opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. debug zip accepts --include-files and --exclude-files file filters to limit the size of debug.zip generation. However, file filters works only on the filename and not on the file path. Ex. We can filter on filename memmonitoring.2025-11-27T14_22_50.507.542221600.txt. However, we can't filter on debug/nodes/1/heapprof/memmonitoring.2025-11-27T14_22_50.507.542221600.txt. Existing file filters support have limitation to filter on debug/x/heapprof directory.

Describe the solution you'd like File filters should accept directory path.

Describe alternatives you've considered As a workaround, we can take a look at the files which are part of a given directory and generate regex on top of it. However, this approach has limitations if we want to filter files of a specific nodes directory.

Additional context N/A

Jira issue: CRDB-57302

Epic CRDB-57357

aa-joshi avatar Nov 27 '25 14:11 aa-joshi