clean log file

Discussion in 'Bukkit Help' started by Tealk, Feb 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Tealk

    Hi, i would like ask if is there any way to clean up the server.log from this:
    Code:
    2012-02-19 04:16:28 [INFO] /178.79.164.111:33417 lost connection
    2012-02-19 04:18:16 [INFO] Connection reset
    2012-02-19 04:19:38 [INFO] /173.255.235.251:41697 lost connection
    2012-02-19 04:20:08 [INFO] Connection reset
    2012-02-19 04:20:17 [INFO] Connection reset
    2012-02-19 04:21:27 [INFO] /178.79.164.111:48890 lost connection
    2012-02-19 04:22:17 [INFO] Connection reset
    2012-02-19 04:23:08 [INFO] Connection reset
    2012-02-19 04:24:16 [INFO] Connection reset
    2012-02-19 04:24:33 [INFO] /94.231.109.47:58127 lost connection
    2012-02-19 04:26:18 [INFO] Connection reset
    2012-02-19 04:26:28 [INFO] /178.79.164.111:43920 lost connection
    2012-02-19 04:28:18 [INFO] Connection reset
    2012-02-19 04:30:02 [INFO] /173.255.235.251:58772 lost connection
    2012-02-19 04:30:18 [INFO] Connection reset
    2012-02-19 04:31:28 [INFO] /178.79.164.111:38040 lost connection
    2012-02-19 04:32:18 [INFO] Connection reset
    2012-02-19 04:33:05 [INFO] /94.231.109.47:38266 lost connection
    2012-02-19 04:34:18 [INFO] Connection reset
    
     
  2. Offline

    Jaxkr

    1. Delete server.log. Bukkit will generate a new one.
    2. Get faster internet/host.
     
  3. Offline

    Tealk

    1. No every restart of my server i get a new log, this make my bash shell startscrip whitch i have write.
    2. This is not a issue because my host is slow, this are the server lists which ping the server, but i will filter this
     
  4. Offline

    Jaxkr

    Not to be rude, I don't understand what you're saying. What exactly do you want?
     
  5. Offline

    Tealk

    I will a filter for the log file whitch delete this lines
     
  6. Offline

    zipfe

  7. Offline

    Tealk

    Last edited by a moderator: May 24, 2016
  8. Offline

    zipfe

    It sure does, try again. Using it for ages.
     
  9. Offline

    TheBeast808

    grep -v "94.231.109.4" server.log | grep -v "178.79.164.111" | grep -v "Connection reset" > newserver.log

    That shell command will filter the server.log and output everything without those lines to newserver.log.
     
  10. Offline

    Tealk

    i have set up
    Code:
    filter:
        - type: string
          value: Can't keep up! Did the system time change, or is the server overloaded?
          level: WARNING
     
        - type: string
          value: For help, type "help" or "?"
          level: INFO
         
        - type: string
          value: /94.231.109.47:59656 lost connection
          level: INFO
         
        - type: string
          value: /178.79.164.111:52489 lost connection
          level: INFO
         
        - type: string
          value: /173.255.235.251:50958 lost connection
          level: INFO
         
        - type: string
          value: /173.255.235.251:50117 lost connection
          level: INFO
         
        - type: string
          value: /178.79.164.111:59556 lost connection
          level: INFO
         
        - type: string
          value: /173.255.235.251:52934 lost connection
          level: INFO
         
        - type: string
          value: /178.79.164.111:53327 lost connection
          level: INFO
         
        - type: string
          value: /94.231.109.47:57090 lost connection
          level: INFO
         
        - type: string
          value: /178.79.164.111:40636 lost connection
          level: INFO
         
        - type: string
          value: /173.255.235.251:44243 lost connection
          level: INFO
         
        - type: string
          value: Connection reset
          level: INFO
    but this does not run
    i will block this lines not filter it if i make the fullserver.log
     
Thread Status:
Not open for further replies.

Share This Page