Index: /branches/rel_apv_10_7_3/usr/click/bin/backend/sys_cmd.c
===================================================================
--- /branches/rel_apv_10_7_3/usr/click/bin/backend/sys_cmd.c	(revision 39050)
+++ /branches/rel_apv_10_7_3/usr/click/bin/backend/sys_cmd.c	(working copy)
@@ -3864,12 +3864,13 @@
     pclose(fp);
 }
 
-void cloud_aws_show_log_buffer()
+void cloud_aws_show_log_buffer(uint32_t num_of_lines)
 {
 	FILE *fp;
 	char path[1035];
 	char cmd[1024];
-	snprintf(cmd, 1024, "python3 /ca/bin/aws/LoggerManager.py -mode show");
+	snprintf(cmd, sizeof(cmd), "python3 /ca/bin/aws/LoggerManager.py -mode show -num-lines %u", num_of_lines);
+
 	fp = popen(cmd, "r");
 	if (fp == NULL) {
         printf("Failed to run command\n" );
Index: /branches/rel_apv_10_7_3/usr/click/lib/libparser/commands.pm
===================================================================
--- /branches/rel_apv_10_7_3/usr/click/lib/libparser/commands.pm	(revision 39050)
+++ /branches/rel_apv_10_7_3/usr/click/lib/libparser/commands.pm	(working copy)
@@ -1084,7 +1084,13 @@
 		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",
 		user_level => "CLI_LEVEL_CONFIG",
 		function_name => "cloud_aws_show_log_buffer",
-		function_args => [],
+		function_args => [{
+								type => "U32",
+								help_string => "Enter the number of shown line",
+								optional => "YES",
+								default_value => "0",
+							},
+		],
 	},
 
 	# cloud aws show log severity
Index: /branches/rel_apv_10_7_3/usr/click/tools/aws/LoggerManager.py
===================================================================
--- /branches/rel_apv_10_7_3/usr/click/tools/aws/LoggerManager.py	(revision 39050)
+++ /branches/rel_apv_10_7_3/usr/click/tools/aws/LoggerManager.py	(working copy)
@@ -33,9 +33,9 @@
         return ProxyAWSLogger.get_Logger_level_state()
 
     @classmethod
-    def get_log(cls, number_of_line: int = None) -> str:
+    def get_log(cls, number_of_line: int = 0) -> str:
         """Retrieves log messages."""
-        res = ProxyAWSLogger.get_log()
+        res = ProxyAWSLogger.get_log(number_of_line)
         return res
 
     @classmethod
@@ -66,6 +66,7 @@
                         "getlogpath"], help='Enter [on], [off], [getlogpath], or [show]')
     parser.add_argument('-level', type=str, choices=["debug", "info", "warning", "error",
                         "status"], help='choose severity amond [debug], [info], [warning], or [error]')
+    parser.add_argument('-num-lines', type=int, help='number of log lines to print', default=0)
     args = parser.parse_args()
 
     # set severity
@@ -80,8 +81,8 @@
     elif args.mode == "off":
         LoggerManager.turn_off_logger()
     elif args.mode == "show":
-        print(LoggerManager.get_log())
+        print(LoggerManager.get_log(args.num_lines))
     elif args.mode == "status":
         print(LoggerManager.check_Logger_state())
     elif args.mode == "getlogpath":
-        print(LoggerManager.get_log_file_path())
+        print(LoggerManager.get_log_file_path())
\ No newline at end of file
Index: /branches/rel_apv_10_7_3/usr/click/tools/aws/logger/ProxyAWSLogger.py
===================================================================
--- /branches/rel_apv_10_7_3/usr/click/tools/aws/logger/ProxyAWSLogger.py	(revision 39050)
+++ /branches/rel_apv_10_7_3/usr/click/tools/aws/logger/ProxyAWSLogger.py	(working copy)
@@ -106,12 +106,14 @@
         # cls.is_logger_on = False
 
     @classmethod
-    def get_log(cls) -> str:
-        """return a string of content of log file"""
+    def get_log(cls, number_of_line: int = 0) -> str:
+        """Return a string of log file content, optionally limited to the last number_of_line lines."""
         config = cls.get_config()
         with open(config["log_path"], 'r', encoding='utf-8') as file:
-            content = file.read()
-        return content
+            if number_of_line == 0:
+                return file.read()  # Read the entire file if no line limit is provided
+            else:
+                return ''.join(file.readlines()[-number_of_line:])
 
     @classmethod
     def get_is_logger_on(cls) -> bool:
@@ -188,4 +190,4 @@
             )
             ProxyAWSLogger.set_config(cur_config)
             print("change level")
-        time.sleep(2)
+        time.sleep(2)
\ No newline at end of file
