Log Scanner avatar
Log Scanner
Try for free

No credit card required

View all Actors
Log Scanner

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 mode

Node.js

Python

curl

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 users
  • 99.2% runs succeeded
  • 0.0 days response time
  • Created in Oct 2020
  • Modified 6 months ago
Categories