Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Login the aws server using ssh(open cmd terminal)

    Code Block
    ssh -i nifibetaintancepair.pem  ec2-user@18.222.63.48
  2. find the running docker image container docker ps

  3. copy the container id and execute the docker bash docker exec --user="root" -it <container_name> bash

  4. Check logs file size /nifi-current/logs$ ls -lh

  5. Remove Logs /nifi-current/logs$ rm nifi-app_*.log

  6. Set maximum log size go to on /nifi-current$ cd conf

    1. find the logback.xml file /nifi-current/conf$ ls

    2. edit the file /nifi-current/conf$ vi logback.xml if vi command not exist then install first /nifi-current/conf$ apt-get install vim -y

    3. press +i for edit file. add totalSizeCap value on logs section

      Code Block
       <totalSizeCap>10GB</totalSizeCap>
    4. Image RemovedImage Added

      after edit save the change. press ESC then type :wq

    5. check your changes using by /nifi-current/conf$ cat logback.xml

...