@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. 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 ") public String getLogs(@CliOption(key={"","log_handle"},mandatory=false,help=" ") String logFile, @CliOption(key="save_location",mandatory=false,help=" ") String location)
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.