Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexwilson/fastly-search
A utility for indexing & querying a Fastly account with ElasticSearch for quick, terse & granular searches.
https://github.com/alexwilson/fastly-search
cli elasticsearch fastly fastly-api kibana nodejs search
Last synced: about 11 hours ago
JSON representation
A utility for indexing & querying a Fastly account with ElasticSearch for quick, terse & granular searches.
- Host: GitHub
- URL: https://github.com/alexwilson/fastly-search
- Owner: alexwilson
- License: mit
- Created: 2020-12-13T21:20:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-14T01:04:14.000Z (about 4 years ago)
- Last Synced: 2024-12-25T04:39:50.794Z (about 12 hours ago)
- Topics: cli, elasticsearch, fastly, fastly-api, kibana, nodejs, search
- Language: TypeScript
- Homepage:
- Size: 66.4 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fastly Search
A utility for indexing & querying a Fastly account with ElasticSearch for quick, terse & granular searches.
## Usage
To use this, you need a Fastly API key & an ElasticSearch 7 compatible server.
```bash
$ export ELASTICSEARCH_URL={Your Elasticsearch DSN goes here}
$ export FASTLY_API_KEY={Your Fastly API key goes here}
$ npx fastly-search
```## Local Development
Local development depends on Docker, and ships with a Kibana UI for inspecting local results.
You can get started with the below commands:```bash
$ docker-compose up -d
$ export ELASTICSEARCH_URL=http://$(docker port fastly-search-elasticsearch 9200)/
$ export FASTLY_API_KEY={Your Fastly API key goes here}
$ open http://$(docker port fastly-search-kibana 5601)/app/discover
$ npm run start
```## Running in Production
TBC, but in theory this can write to any ElasticSearch 7 host.## Example Queries
### All active services which have do not have WAF enabled:
```
active:true AND NOT wafs:*
```### All services with an S3 backend
```
backends.address:s3.amazonaws.com
```### All services which manipulate vcl_hash with custom VCL
```
vcls.content:"sub vcl_hash"
```