Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: 4.1.1
    • Component/s: logging
    • Labels:
      None
    • Environment:

      Win7 Pro SP1 64 Bit de_DE

      Description

      When doing remote administration, there are two ways: asadmin and the browser GUI.

      In the browser GUI one can view the server log file with a simple click.

      In asadmin, there is no such command. One has to do asadmin collect-log-files and then open the created ZIP file. This is neither smart nor particularly useful, as one might have to check the log often, so this becomes an unzipping horror.

      To align asadmin with the admin GUI I hereby propose a new command for the asadmin tool:

      asadmin show-log

      That shall directly print the log file on the console just as the browser based GUI does.

        Issue Links

          Activity

          Hide
          Tom Mueller added a comment -

          Changing to logging component.

          Show
          Tom Mueller added a comment - Changing to logging component.
          Hide
          naman_mehta added a comment -

          Started working on the same. Facing some issue with CommandRunnerImpl so raised issue on that line to move further.

          So planning to come up with command which returns last 40 log records from server.log file for given target. It also allows user to provide filter settings based on text search.

          So command looks like,
          % ./asadmin show-log --filterLog=Exc server
          Here, it returns all log records where message contains 'Exc' in it for server.

          % ./asadmin show-log instance1
          Here, it returns all log records for instance1.

          Show
          naman_mehta added a comment - Started working on the same. Facing some issue with CommandRunnerImpl so raised issue on that line to move further. So planning to come up with command which returns last 40 log records from server.log file for given target. It also allows user to provide filter settings based on text search. So command looks like, % ./asadmin show-log --filterLog=Exc server Here, it returns all log records where message contains 'Exc' in it for server. % ./asadmin show-log instance1 Here, it returns all log records for instance1.
          Hide
          mkarg added a comment -

          I would not limit it to 40 records, but propose to sent the complete log content unless a new option explicitly limits the records count:

          asadmin show-log --rows=40

          That way people would have more control on the amount of records returned, and if one really needs all rows, he can easily get them.

          Show
          mkarg added a comment - I would not limit it to 40 records, but propose to sent the complete log content unless a new option explicitly limits the records count: asadmin show-log --rows=40 That way people would have more control on the amount of records returned, and if one really needs all rows, he can easily get them.
          Hide
          rajendra_inamdar added a comment -

          We will be supporting a log-query command in a future release, which will be a superset of a show-log command. Therefore deferring this to a future release.

          Show
          rajendra_inamdar added a comment - We will be supporting a log-query command in a future release, which will be a superset of a show-log command. Therefore deferring this to a future release.

            People

            • Assignee:
              sandeep.shrivastava
              Reporter:
              mkarg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: