I have several Gigabytes text files in the format: {"user_ip": "xxxx", "action_type": "xxx", "action_data": {"some_key": "some_value" ...}, ...}
each record is one line.
First, I would like to easily find the entries for this ip. This part is simple because I can use grep, for example. However, even for this, I would like to find a better solution, because I would like to get an answer as quickly as possible.
The next part is more complicated, because I would like to find entries from the selected ip and the selected type and with the specific value some_key in action_data.
Maybe I would have to convert this file to SQL db (maybe SQLite, because it will be the APP desktop), but I would ask if there are better solutions?
source
share