@Override
        void run() {
            final int MAX_LOG_SIZE = 100;
            try {
                // for now only filter by one condition. TODO:support OR and AND, make a condition filter.
                // sample input: inlongGroupId:test_group
                if (StringUtils.isNotBlank(input)) {
                    System.err.println("input cannot be empty, for example: inlongGroupId:test_group");
                    return;
                }
                String[] inputs = input.split(":");
                if (inputs.length < 2 || StringUtils.isBlank(inputs[1])) {
                    System.err.println("the input must contain ':'");
                    return;
                }

                ClientUtils.initClientFactory();
                InlongGroupClient groupClient = ClientUtils.clientFactory.getGroupClient();
                InlongGroupPageRequest pageRequest = new InlongGroupPageRequest();
                pageRequest.setKeyword(inputs[1]);
                PageResult<InlongGroupBriefInfo> pageResult = groupClient.listGroups(pageRequest);
                if (pageResult.getPageSize() > MAX_LOG_SIZE) {
                    System.err.println("the log is too large to print, please change the filter condition");
                    return;
                }
                PrintUtils.print(pageResult.getList(), GroupInfo.class);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
The log command was used to get log info for specified inlong groups.
inlong-manager/manager-client-tools/src/main/java/org/apache/inlong/manager/client/cli/LogCommand.java