@Component @UserDocumentation(title="Commands for Accessing Logs", description="This section provides commands for fetching logs under LENS_LOG_DIR.") public class LensLogResourceCommands extends BaseLensCommand
DATE_FMT, DATE_PARSER
Constructor and Description |
---|
LensLogResourceCommands() |
Modifier and Type | Method and Description |
---|---|
String |
getLogs(String logFile,
String location) |
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getOrDefaultQueryHandleString, getValidPath, removePrefixBeforeURI, setClient
@CliCommand(value="show logs", help="show logs for the given handle <log_handle>. Handle can either be a query handle or request id. If not provided, takes last query handle interacted with. You can optionally provide a location to save the logs as <save_location>") public String getLogs(@CliOption(key={"","log_handle"},mandatory=false,help="<log_handle>") String logFile, @CliOption(key="save_location",mandatory=false,help="<save_location>") String location)
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.