Parse Query Log using Python #7122
Unanswered
Heshmatkhah
asked this question in
Q&A
Replies: 1 comment
-
https://github.com/AdguardTeam/AdGuardHome/blob/master/internal/querylog/decode.go#L97 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to parse querylog.json file using python.
![image](https://private-user-images.githubusercontent.com/10222466/346439983-63ee6cb4-8bca-4a17-aa49-d60c6e304169.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2OTQ1OTksIm5iZiI6MTcyMTY5NDI5OSwicGF0aCI6Ii8xMDIyMjQ2Ni8zNDY0Mzk5ODMtNjNlZTZjYjQtOGJjYS00YTE3LWFhNDktZDYwYzZlMzA0MTY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIzVDAwMjQ1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkZjBhMGM0M2RmMjA1NjNjNjY4MDBlZTZmMWY3MmFmNDYzZjlhN2ZhZWZjYmU1YzY3NzE1M2VjNjExOTk2MjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x_dSsPqFbZbLWEldTz-yrhk5e7vDV1R8rtdjUtwrx-4)
each line in the file is a valid json, but the Answer value is a base64, and when i decode it, it's some binary data.
how can I parse it and.
I need to know actual response to the client. just like what UI shows:
here are some example
Beta Was this translation helpful? Give feedback.
All reactions