This repository contains various demonstrations of Vector.dev configurations for different use cases.
A basic demonstration showing Vector's console-to-console data pipeline.
vector --config console-in-console-out/vector.toml
- Type messages in the console
- See the processed output immediately
Extracts and processes raw syslog messages from demo data.
- Reads demo syslog data
- Parses and structures the messages
- Outputs to specified format
Fetches and processes demo syslog messages with enhanced parsing.
- Syslog message extraction
- Advanced parsing rules
- Structured output generation
Production-ready system syslog parsing configuration.
- Real-time system log monitoring
- Structured parsing of syslog messages
- JSON output format
- Handles various syslog formats
Demonstrates file-based input and output operations.
vector --config file-in-file-out/vector.toml
- Reads from input file
- Processes data
- Writes to output file
Demonstrates parsing and transforming nested JSON data using VRL.
- Parses nested JSON strings
- Handles timestamp parsing and formatting
- Field transformations and removal
- Case conversion
vector vrl --input input.json --program program.vrl --print-object > output.json
Shows basic data transformation capabilities using VRL.
- Field removal and addition
- Timestamp generation
- HTTP status code parsing
- Status field mapping
vector --config vector.toml
learning-vector.dev/
├── console-in-console-out/
│ └── vector.toml
├── extract-raw-demo-syslog/
│ └── vector.toml
├── fetch-demo-syslog/
│ └── vector.toml
├── fetch-system-syslogs/
│ ├── vector.toml
│ └── README.md
├── file-in-file-out/
│ └── vector.toml
├── VRL-parsing_JSON/
│ ├── input.json
│ ├── program.vrl
│ ├── output.json
│ └── README.md
├── VRL_transformation/
│ ├── input.json
│ ├── program.vrl
│ ├── output.json
│ └── README.md
└── README.md
- Vector.dev installed on your system
- Basic understanding of data processing pipelines
- Access to system logs (for syslog demos)
- Read/write permissions for file operations
- Clone this repository
- Install Vector if not already installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.vector.dev | sh
- Navigate to the desired example directory
- Run the specific configuration using:
vector --config <configuration-file>.toml
For VRL-specific examples, you can use either of these methods:
-
Using VRL CLI tool:
vector vrl --input input.json --program program.vrl --print-object > output.json
-
Using Vector configuration:
vector --config vector.toml
Each directory contains:
- A Vector configuration file (
.toml
) - Sample data files (where applicable)
- Specific README with detailed instructions (where applicable)
- Console Demo: Testing and learning Vector basics
- Raw Syslog: Processing basic syslog data
- Demo Syslog: Advanced syslog parsing
- System Syslog: Production system monitoring
- File Operations: Batch data processing
- VRL JSON Parsing: Complex JSON transformation and nested JSON handling
- VRL Basic Transformation: Field manipulation and status code mapping
For more information about Vector, visit vector.dev
- Check file permissions
- Verify Vector installation
- Ensure correct configuration paths
- Review Vector logs for errors