Logs and database

i have logfiles which has user id and i dont have user name.user name is available in database.now i have to visualize usernames based on the userid present in logs.how?

Have a look at the jdbc static plugin. You should be able to use this to add the username based on the mapping available in your database.