Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ permissions:

jobs:
test:
# Skip on the template repo itself; consumer repos have is_template: false.
if: github.event.repository.is_template == false
# Runs on the template too — the template now ships a working demo
# passthrough pipeline + fixture so the harness gets exercised here
# before consumer repos inherit it.
Comment thread
JacobPEvans-personal marked this conversation as resolved.
uses: dryvist/cc-edge-pack-template/.github/workflows/cribl-pack-test.yml@main
Comment thread
JacobPEvans-personal marked this conversation as resolved.
with:
# CHANGE per pack: 'edge' for Cribl Edge packs, 'stream' for Cribl Stream packs.
Expand Down
20 changes: 20 additions & 0 deletions default/pipelines/passthrough/conf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
output: default
streamtags: []
groups: {}
asyncFuncTimeout: 1000
description: >-
Demo passthrough pipeline. Stamps Splunk-canonical fields
(sourcetype, index, datatype) on every event. Replace this
with your real pipeline logic when scaffolding a new pack.
functions:
- id: eval
filter: "true"
disabled: false
conf:
add:
- name: sourcetype
value: "'cribl:demo'"
- name: index
value: "'main'"
- name: datatype
value: "'cribl-demo'"
12 changes: 6 additions & 6 deletions default/pipelines/route.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ id: default
groups: {}
comments: []
routes:
# Replace this placeholder route with your real routes.
# Demo route. Replace with your real routes when scaffolding a new pack.
# Validator rules:
# - id and pipeline must be descriptive (no 'main', no 'route1')
# - filter must be a real expression (not literally 'false' / '0')
# - output MUST be __group (not input_id)
- id: REPLACE_ROUTE_ID
name: Replace With Route Name
- id: passthrough
name: Demo Passthrough
final: true
disabled: false
pipeline: REPLACE_PIPELINE_NAME
description: "Placeholder — replace id, name, pipeline, and filter."
pipeline: passthrough
description: "Demo route — replace when scaffolding a new pack."
enableOutputExpression: false
targetContext: group
filter: "datatype=='replace-with-your-datatype'"
filter: "datatype=='cribl-demo'"
clones: []
output: __group
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "REPLACE-WITH-PACK-NAME",
"name": "cc-edge-demo-io",
"version": "0.0.1",
"minLogStreamVersion": "4.17.0",
"author": "Your Name <your.email@example.com>",
"description": "REPLACE: Brief description of what this pack does.",
"displayName": "REPLACE With Display Name",
"author": "dryvist <hello@dryvist.example>",
"description": "Demo passthrough pack — replace name/displayName/description/author when scaffolding from this template.",
"displayName": "Cribl Edge Demo Pack",
"tags": {
"streamtags": [
"replace",
Expand Down
8 changes: 8 additions & 0 deletions tests/fixtures/passthrough/sample.expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"sourcetype": "cribl:demo",
"index": "main",
"datatype": "cribl-demo",
"_raw": "demo event"
}
]
7 changes: 7 additions & 0 deletions tests/fixtures/passthrough/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"_raw": "demo event",
"_time": 1714137600,
"datatype": "cribl-demo"
}
]
Loading