public static void QueryLogs(Socket s) {
        JSONObject query; //sent to server
        JSONObject reply; //recieved from server

        Scanner sc = new Scanner(System.in);
        //submenu
        System.out.println("Query logs:");
        System.out.println("1: Get last 20 logs");
        System.out.println("2: Get specific logs");
        System.out.print("Please make a selection: ");

        char choice = sc.nextLine().charAt(0);

        switch (choice) {
            case '1':
                reply = LastLogLines(s);
                JSONArray lines1 = reply.getJSONArray("result");
                for (int i = 0; i < lines1.length(); i++) { //printing out reply from server
                    System.out.println(lines1.get(i).toString());
                }
                break;
            case '2':
                query = GetLogQueryInfo();
                reply = new JSONObject(GetReplyFromServer(query, s));
                System.out.println(reply.toString());
                JSONArray lines2 = reply.getJSONObject("result").getJSONArray("lines");
                JSONObject line = new JSONObject();
                for (int i = 0; i < lines2.length(); i++) { //printing out reply from server
                    line = lines2.optJSONObject(i);
                    System.out.println("Action " + line.get("action") + " run by group " + line.get("group_id") + " at time " + line.get("time"));
                }
                break;
        }


    }