Edge Delta Demo Source

Create a log data source for testing.

See the latest version here.

Overview

This input type generates random Apache and NGINX access logs with various response codes. For error case, it would generate an NGINX log with “500” response code. This input can be used for testing.

Example

inputs:
  demos:
    - name: "demo"
      type: demo_input
      labels: "fast"
      speed: "1ms"
      error_interval: "100ms"
      error_count: 20

Example Output

{
	"_timestamp": 1679307886734,
	"_type": "log",
	"_raw": "246.71.86.239 - russel7464 [20/03/2023:11:24:46 +0100] \"DELETE /v1/logout HTTP/1.1\" 200 25978 \"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6 rv:7.0; en-US) AppleWebKit/532.25.2 (KHTML, like Gecko) Version/5.1 Safari/532.25.2\"",
	"_ed": {
		"__group_name": "site1-env|stat|site1-agent|Demo|demo_input",
		"host": "site1-agent",
		"ip": "<REDACTED>",
		"__logical_source": "Demo,site1-env|stat|site1-agent|Demo|demo_input",
		"__short_src_name": "demo_input",
		"__src_name": "site1-env|stat|site1-agent|Demo|demo_input",
		"src_type": "Demo",
		"tag": "site1-env"
	}
}

Required Parameters

name

The name parameter defines a descriptive name for the demo source. It is specified as a string. The name parameter is required for a demo source.

inputs:
  demos:
    - name: "demo"

type: demo_input

The type parameter must be defined as demo_input. It is specified as a string. The type parameter is required for a demo source.

inputs:
  demos:
    - name: "demo"
      type: demo_input

labels

The labels parameter provides one or more names that can be used to refer to the input, for example in a workflow. It is specified as a string. The labels parameter is required for a demo source.

inputs:
  demos:
    - name: "demo"
      type: demo_input
      labels: "demo"

speed

The speed parameter defines the interval between each log that is generated. It is specified as a duration. The speed parameter is required for a demo source.

inputs:
  demos:
    - name: "demo"
      type: demo_input
      labels: "demo"
      speed: 100ms

error_interval

The error_interval parameter defines the duration for which error logs will be generated. It is specified as a duration. The error_interval parameter is required for a demo source.

inputs:
  demos:
    - name: "demo"
      type: demo_input
      labels: "demo"
      speed: 100ms
      error_interval: 1s
      

error_count

The error_count parameter defines the number of error logs to be generated. It is specified as an integer. The error_count parameter is required for a demo source.

inputs:
  demos:
    - name: "demo"
      type: demo_input
      labels: "demo"
      speed: 100ms
      error_interval: 1s
      error_count: 20