I'm not a lawyer, I'm a programmer and I just found this on StackOverflow (so it's their fault that I'm here). But I have 2 brothers and a father who are lawyers.
Again I am not a lawyer but I run many web apps and sites. We encounter a huge amount of personal data every day, but it is far too expensive to store all of that data. (Most sites are not in the business of monetizing cheap data like that...only social networks, Google, etc). It seems to me that any reasonable law would only require you to keep a record of the data you actually intended to capture. Yes of course if you set up a server log for every single detail of every request from every IP address for 5 years, you could store that... but the cost of capturing and retaining that information would be ridiculous (especially if your site isn't even online anymore!)
As a software engineer, I can tell you that there are 100 times more data points we could capture than we actually do capture, because they aren't valuable enough to the business we're employed by. IP addresses are not very valuable and we don't retain them for long, only to sometimes help validate cookies for 30-60 minute periods, because they're constantly changed and traded between end users. Perhaps telecoms store to whom those were assigned and when, and then we could know who had the exact IP who was posting on a forum at a certain time if we put our information together with the telecom company's. But we already have user email and login addresses, so holding the IP addresses serves no purpose and it actually hurts security (we never want someone to fake an IP and login on someone else's account). So, if you don't store it, you don't store it; so there is nothing to retain.
Bottom line: Don't store the IP addresses of your users. There is no good reason to do it and you won't have to worry about anyone asking you for the records later. I can't speak to the rest of this as I don't know anything about Indonesian laws but you can always build a cold storage somewhere if you need to, to back up anything you captured.