[INACTIVE][ADMN/SEC/WEB] DataLog - replaced by HawkEye [1000]

Discussion in 'Inactive/Unsupported Plugins' started by oliverw92, Apr 15, 2011.

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

    oliverw92

    Vaupell, Pinkpixels, Sleaker and 2 others like this.
  2. Offline

    Juze

    Please test against latest RB (Currently 677) just to be sure.
     
  3. Offline

    oliverw92

    Done, 100% compatible
     
  4. Offline

    h0us3cat

    Can i view worldguard logs with this?
    Or wait it pushes the block breaks ect into the DB?
     
  5. Offline

    oliverw92

    I updated the op with a list of what it logs.
     
  6. Offline

    overlordror

    Ah man, this plugin looks amazing. I just wish my host offered PHP support. You said it is possible to use a MySQL database outside of the server, though? So I could set up a database on my own webhosting and run it from there?
     
  7. Offline

    h0us3cat

    ok, i was thinking it reads the server.log :p

    edit, getting this error

    Code:
    "localhost", "dbDbase" => "log", "dbUser" => "log", "dbPass" => "mypassword", "dbTable" => "datalog" ); $con = mysql_connect($config["dbHost"], $config["dbUser"], $config["dbPass"]); if (!$con) die("Could not connect to MySQL Database!"); if (!mysql_select_db($config["dbDbase"], $con)) die(mysql_error()); ?>
    Notice: Undefined variable: config in C:\sites\index.php on line 10
    
    Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\sites\index.php on line 11
    
    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\sites\index.php on line 11
    
    The server created the tables in the given database.
     
  8. Offline

    oliverw92

    You can run it any way you like, the optimum way would be as follows though:
    - MySQL database on the same computer/server as the minecraft server - doesn't use much bandwidth and will be less laggy since its localhost
    - Interface hosted on a remote webserver, connecting to the database on the minecraft server computer

    You can use a remote database for the plugin if you want, but if you were to have a lot of players online it will start using a lot of bandwidth.

    The plugin is running fine, you have messed up the mysql.php file. Post the contents of it here, turning your host, user and password into *'s.
     
  9. Offline

    h0us3cat

    Code:
    <?
        $config = array(
                        "dbHost"  => "localhost",
                        "dbDbase" => "*",
                        "dbUser"  => "*",
                        "dbPass"  => "*",
                        "dbTable" => "datalog"
                        );
    
        $con = mysql_connect($config["dbHost"], $config["dbUser"], $config["dbPass"]);
        if (!$con)
            die("Could not connect to MySQL Database!");
        if (!mysql_select_db($config["dbDbase"], $con))
            die(mysql_error());
    
    ?>
     
  10. Offline

    oliverw92

    Everything looks fine. Try redownloading and uploading the interface again. Make sure all your MySQL details are correct in mysql.php
     
  11. Offline

    spunkiie

    Can't run it on #677

    2011-04-15 16:59:06 [SEVERE] null loading DataLog v0.1 (Is it up to date?)
    java.lang.NullPointerException
    at uk.co.oliwali.DataLog.DataLogDB.checkTable(DataLogDB.java:99)
    at uk.co.oliwali.DataLog.DataLogDB.<init>(DataLogDB.java:31)
    at uk.co.oliwali.DataLog.DataLog.onEnable(DataLog.java:48)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  12. Offline

    h0us3cat

    done but same error :(

    edit, ok i know the problem.

    I am on a windows server.
    windows have problems with just "<?blabla?> , i changed it to <?php blabla?> .
    now the error is gone :) :)
     
  13. Offline

    oliverw92


    Please check above that error, there is most likely another error from DataLog itself saying something about a MySQL error.

    I'll note to add proper exception catching on that for the next release to make it more obvious.

    I'll try redoing mine to make sure i haven't done anything silly.
     
  14. Offline

    Jonathan Bloom

    Is it out of the question to ask for possible bigbrother integration? I don't want to have two databases doing the same thing.
     
  15. Offline

    h0us3cat

    i fixed the error, see my edit.
    i made these changes in index.php too, just to let u know ;)
     
  16. Offline

    oliverw92

    I could do, might not have time this week though. I should note that this logs a LOT less frequently than bigbrother, and doesn't actually affect resources much at all - the databases aren't exactly the same. BigBrother logs a ton of stuff that you don't really want to read about in the browser (lava flow, leaf decay, tnt/creeper explosions). Whenever bigbrother logs an explosion it also has to log all the individual blocks that are destroyed, whereas datalog doesn't have to do anything like that. I doubt you will notice any increase in resources by installing DataLog alongside BigBrother - i have it running alongside LogBlock and it works perfectly.

    Ah! Thanks for the heads up, i'll fix that.

    EDIT: Done
     
  17. Offline

    Jonathan Bloom

    Ok good. Then I'm going to install this. :)
     
  18. Offline

    oliverw92

    Awesome, let me know how you get on!
     
  19. Offline

    renxwar

    Works amazingly. I don't know how to set up the webserver thing. BUT I have DSTrackLayer on my iPod :p
     
  20. Offline

    Phinary

    So do I hook this up to the same database as logblock or a different database? like how does the integration with logblock work?

    also does the website have any sort of password protection or authentication? and 1 more thing. Please add a feature to make it so it doesnt show certain commands. I have a login system and i dont want it to show my moderators the passwords when they do /login or /register

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  21. Offline

    jor956

    Please help me:
    Code:
    09:21:46 [INFO] [DataLog] Creating table datalog
    09:21:46 [SEVERE] [DataLog] SQL exception while checking datalog
    09:21:46 [INFO] [DataLog] Version 0.1 disabled!
    09:21:46 [SEVERE] Plugin attempted to register BLOCK_BREAK while not enabled log
    ding DataLog v0.1 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register BLO
    CK_BREAK while not enabled
            at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManag
    er.java:289)
            at uk.co.oliwali.DataLog.DataLog.onEnable(DataLog.java:52)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:578)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  22. Offline

    oliverw92

    No it has its own database - it doesn't integrate with LogBlock. The reason I made this was because the LogBlock database isn't as efficient as I would like when making a web app to browse data.

    It is failing when trying to create the table. Has the MySQL user you are using with DataLog got permission to create tables?

    The website does not have password authentification at the moment. It is a planned feature. For now I suggest just setting up a simple .htaccess file if you want password protection - will do the job fine. I'll implement sessions soon.

    I can add a feature to stop logging certain commands.
     
  23. Offline

    Oscarius

    This is amazing, I've been looking for something like this forever!

    I'm looking forward to BigBrother integration, that would be sweet.
     
  24. Offline

    Jorrdan

    Fantastic! Getting the good folks at go-networks to install this for me tonight! Also big brother integration should be made high. As a lot of servers use it.
     
  25. Offline

    h0us3cat

    This plugin works great <3
    Only one problem for me now is the log time is 1 hour wrong.
    For example the time is now on the server 12:04 and on the page it says 11:04.
    I know it has nothing to do with the plugin (i think).
    I had to disable automatic time change in windows settings.
     
  26. Offline

    Phinary

    Okay so excuse me if im wrong but this is a logblock replacement? And any way to transfer database?
     
  27. Offline

    Jorrdan

    Hmm. This plugin is giving me a hard time. It was working good for a few moments. Then all of a sudden it stopped updating. Then when i reload, it updates fine but all the other plugins break!! And another reload does not fix this. After a restart it continues to not update. Not sure what to do.
     
  28. Offline

    gamerpaddy

    it works! but you can read the AuthMe password with the option command pls fix this :))
    ..
    Code:
    2011-04-16 17:20:57    gamerpaddy    Command    33    70    -2    /login xxxx
     
  29. Offline

    Phinary

    Also: Any chance you can add logging of ips? This would be a big help.

    Yes. Make it not log /login and /register commands. Or alternatively for the login system have possibility for multiple types of accounts? Like have a admin account that can view commands, and then have a Moderator account that cant view any command logs.


    AND: lol well, think i can run this and logblock at the same time? So then i can still do the logblock commands and view logs in game, or would it cause major lag?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  30. Offline

    gamerpaddy

    nope^^ i have logblock webstats and datalog (and mysql and webserver etc.) on the same system
     
Thread Status:
Not open for further replies.

Share This Page