summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2017-02-22 19:23:56 +0100
committerSilvan Jegen <s.jegen@gmail.com>2017-02-22 19:23:56 +0100
commit68c3940d1e49ac3cacab997a125f185216e80627 (patch)
treebae894c7b24a84c55d1d035989726ff6f24bdb2a
parentb3b3812d9703ab083b12ee3376f9057c1accc0ec (diff)
Add demo files
-rw-r--r--demohttp.cfg16
-rw-r--r--demostdin.cfg13
-rw-r--r--httpdemoinput.sh2
3 files changed, 31 insertions, 0 deletions
diff --git a/demohttp.cfg b/demohttp.cfg
new file mode 100644
index 0000000..5df32ad
--- /dev/null
+++ b/demohttp.cfg
@@ -0,0 +1,16 @@
+input {
+ http {
+ prefix => "hello"
+ port => "8080"
+ }
+}
+
+filter {
+ string {
+ "A" => "test/TEST"
+ }
+}
+
+output {
+ stdout {}
+}
diff --git a/demostdin.cfg b/demostdin.cfg
new file mode 100644
index 0000000..a6cfe45
--- /dev/null
+++ b/demostdin.cfg
@@ -0,0 +1,13 @@
+input {
+ stdin {}
+}
+
+filter {
+ string {
+ "A" => "test/TEST"
+ }
+}
+
+output {
+ stdout {}
+}
diff --git a/httpdemoinput.sh b/httpdemoinput.sh
new file mode 100644
index 0000000..b520b12
--- /dev/null
+++ b/httpdemoinput.sh
@@ -0,0 +1,2 @@
+curl -d "{\"A\": \"test\"}" http://localhost:8080/hello
+