Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field indicating if the request was a success #53

Open
gitressa opened this issue Feb 20, 2019 · 2 comments
Open

Add field indicating if the request was a success #53

gitressa opened this issue Feb 20, 2019 · 2 comments

Comments

@gitressa
Copy link
Contributor

To get records with both null, 404 and 5xx HTTP status, an internal success flag in the results would allow us to filter by select(.success!=true).

@gitressa
Copy link
Contributor Author

This is still relevant. Here is a list of URLs which have "status": null, yet the link doesn't work. Links are grouped by their exception message:

@gitressa
Copy link
Contributor Author

gitressa commented Jun 2, 2019

I have found this solution for filtering on multiple status values:
cat linkreport.json | jq -c '. | select([.status] | inside([301, 302, 400, 401, 403, 404, 406, 410, 416, 500, 502, 503, 504])) | {page: .referrer, link_text: .referrer_title, dead_link: .url}' | jq '.'

@dantleech dantleech changed the title Internal success flag Add field indicating if the request was a success Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant