zmoog / public-notes

Apache License 2.0
0 stars 1 forks source link

Figure out how to create an input package for the Elastic Agent #97

Open zmoog opened 4 weeks ago

zmoog commented 4 weeks ago

Using elastic-package v0.106.0

$ elastic-package version
elastic-package v0.106.0 version-hash e76f23b0 (build time: 2024-10-16T18:38:00+02:00)

$ elastic-package create package --help
Use this command to create a new package.

The command can bootstrap the first draft of a package using embedded package template and wizard.

Usage:
  elastic-package create package [flags]

Flags:
  -h, --help   help for package

Global Flags:
  -C, --change-directory string   change to the specified directory before running the command
  -v, --verbose                   verbose mode
zmoog commented 4 weeks ago
[azure_logs] elastic-package create package 
Create a new package
? Package type: input
? Package name: azure_logs
? Version: 0.1.0
? License: Apache-2.0
? Package title: Custom Azure Logs Input
? Description: Collect log events from Azure Event Hubs with Elastic Agent
? Categories:  [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
? Categories: azure, custom
? Kibana version constraint: ^8.13.0
? Required Elastic subscription: basic
? Github owner: elastic/obs-ds-hosted-services
? Owner type: elastic
? Input Data Stream type: logs
? Enable creation of subobjects for fields with dots in their names? Yes
New package has been created: azure_logs
Done

$ tree
.
├── LICENSE.txt
├── agent
│   └── input
│       └── input.yml.hbs
├── changelog.yml
├── docs
│   └── README.md
├── fields
│   └── base-fields.yml
├── img
│   ├── sample-logo.svg
│   └── sample-screenshot.png
└── manifest.yml

5 directories, 8 files
zmoog commented 4 weeks ago

Created a PR in draft https://github.com/elastic/integrations/pull/11552