I explain: I have a java application that dumps data of all the processes running on my pc in a text file by means of a command; this file will be generated every 5 seconds for example (thread). The generated file has about 130000 lines, so it's not going to be very effective in terms of process speed that of doing loops inside the file to find a string.
I need to find a text string within this file, for example: \Device%code%00005x
and once found, go back up a few lines in the file to find the name of the process that is executing it, some programmers have suggested the use of document databases (NoSQL) but I'm sure they have the function I need.
The format in which the processes appear within the file is as follows:
(each process is delimited by a line of dashes "-", I think this may be useful when fishing for the name of the process that is right on the next line):
--
explorer.exe pid: 4632 WATCUT\tofpo
4: Process
8: Mutant
C: Unknown type
10: Unknown type
14: Directory
18: Key
--
SynTPEnh.exe pid: 3692 WATCUT\tofpo
4: Event
8: WaitCompletionPacket
C: IoCompletion
10: TpWorkerFactory
14: IRTimer
18: WaitCompletionPacket
60: Key HKLM\SYSTEM\ControlSet001\Control\Nls\Sorting\Versions
64: File \Device\DeviceApi
68: IRTimer
This is just an example, the text file is huge as I said and consists of more than 125000 lines. Someone who has done something similar or knowledge of NoSQL databases that can shed some light?