nim_cexc

A simple chunked external protocol interface for Splunk custom search commands.

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License Apache2
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install nim_cexc
choosenim install nim_cexc
git clone https://github.com/metasyn/nim-cexc-splunk

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
nim_cexc - - - - - - -

Source

Repository https://github.com/metasyn/nim-cexc-splunk
Homepage https://github.com/metasyn/nim-cexc-splunk
Documentation View Documentation
Registry Source nimble_official

README

nim-cexc

This repo contains an implementation of a custom search command for Splunk Enterprise. It is written in Nim - an efficient and expressive programming language. It is a statically typed language, and compiled. See this page to learn more about why Nim is great.

Using

See src/cexc/handler for the basis of a new search command. Namely, you'll need to override the various handler methods, e.g. what to do during getinfo exchange, and what to do during the execute chunks. The foo example included with this repo simply reflects the input data back to original process.

See the super simple build.sh script to build your application - you'll need to change some file names in app.conf and commands.conf appropriately if you change the names of the files. After that, you can tar ball your app folder andinstall it as a Splunk app. Remember that since Nim is a compiled language, it will only work on the architecture that you compiled the command on - see this page for information on cross compiling for other architectures.

CEXC - Chunked EXternal Command

See this presentation for more information on the chunked protocol and custom search commands.

License

Apache2

Authors

Xander Johnson