![Log Scanner avatar](https://images.apifyusercontent.com/PLzJr_1lt60stsN7yIyejQ60ra20xbzAkzxGLcHDmew/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9tNUszaHo5d3FpdHczQVV5MS9OaXc0OXZiZlhHNTdCM3ROeS1jaHJvbWUtdmlydXMtc2Nhbi03XyUyODIlMjkucG5n.webp)
Log Scanner
Try for free
No credit card required
View all Actors![Log Scanner](https://images.apifyusercontent.com/PLzJr_1lt60stsN7yIyejQ60ra20xbzAkzxGLcHDmew/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9tNUszaHo5d3FpdHczQVV5MS9OaXc0OXZiZlhHNTdCM3ROeS1jaHJvbWUtdmlydXMtc2Nhbi03XyUyODIlMjkucG5n.webp)
![Log Scanner](https://images.apifyusercontent.com/PLzJr_1lt60stsN7yIyejQ60ra20xbzAkzxGLcHDmew/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9tNUszaHo5d3FpdHczQVV5MS9OaXc0OXZiZlhHNTdCM3ROeS1jaHJvbWUtdmlydXMtc2Nhbi03XyUyODIlMjkucG5n.webp)
Log Scanner
lukaskrivka/log-scanner
Try for free
No credit card required
Log scanner helps you to find particular text in your log files. It can scan [Apify](https://apify.com/) runs, tasks, or actors but also arbitrary text files. If you ever had a problem finding that one error in a thousand runs, this is a tool to use.
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "runIdsOrUrls": [
8 "ILnaIxL36Qd9tLgUh",
9 "https://api.apify.com/v2/logs/ILnaIxL36Qd9tLgUh"
10 ],
11 "regexes": [
12 "Error"
13 ]
14}
15EOF
16
17# Run the Actor using an HTTP API
18# See the full API reference at https://docs.apify.com/api/v2
19curl "https://api.apify.com/v2/acts/lukaskrivka~log-scanner/runs?token=$API_TOKEN" \
20 -X POST \
21 -d @input.json \
22 -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
- 1 monthly user
- 3 stars
- 100.0% runs succeeded
- Created in Oct 2020
- Modified 10 months ago
Categories