Hello, I have a particular log file, and I would like to capture certain data from it and store it in [].
view the log file:
+++ Statistics Dump +++ (1499195839)
++ Incoming Requests ++
552 QUERY
++ Incoming Queries ++
546 A
1 NS
5 AAAA
++ Outgoing Queries ++
[View: default]
1350 A
53 NS
446 AAAA
544 DS
35 DNSKEY
[View: _bind]
++ Name Server Statistics ++
552 IPv4 requests received
1 requests with EDNS(0) received
550 responses sent
1 responses with EDNS(0) sent
300 queries resulted in successful answer
541 queries resulted in non authoritative answer
6 queries resulted in nxrrset
9 queries resulted in SERVFAIL
235 queries resulted in NXDOMAIN
385 queries caused recursion
2 duplicate queries received
++ Zone Maintenance Statistics ++
++ Resolver Statistics ++
[Common]
Now via php I would like to take for example the 3 line the given 552 and print like this: [552].
Thank you.