...
Login the aws server using ssh(open cmd terminal)
Code Block ssh -i nifibetaintancepair.pem ec2-user@18.222.63.48
find the running docker image container
docker ps
copy the container id and execute the docker bash
docker exec --user="root" -it <container_name> bash
Check logs file size
/nifi-current/logs$ ls -lh
Remove Logs
/nifi-current/logs$ rm nifi-app_*.log
Set maximum log size go to on
/nifi-current$ cd conf
find the
logback.xml
file/nifi-current/conf$ ls
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
press +i
for edit file. add totalSizeCap value on logs sectionCode Block <totalSizeCap>10GB</totalSizeCap>
after edit save the change.
press ESC
thentype :wq
check your changes using by
/nifi-current/conf$ cat logback.xml
...