Skip to content

Add hec format #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
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
7 changes: 0 additions & 7 deletions .circleci/compile.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .circleci/functional_tests_config.sh

This file was deleted.

43 changes: 0 additions & 43 deletions .circleci/functional_tests_malformed.sh

This file was deleted.

43 changes: 0 additions & 43 deletions .circleci/functional_tests_partial.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .circleci/unit_tests.sh

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci test
on: [push, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'

- name: Install Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8

- name: Update apt repositories
run: sudo apt update

- name: Upgrade python packaging tools
run: python -m pip install --upgrade pip setuptools wheel

- name: Compile
run: make

- name: Run unit tests
run: make test

- name: Setup dependencies
run: cd test && make setup-venv && make setup-splunk

- name: Run functional tests partial log
run: cd test && make test-partial

- name: Run functional tests config params
run: cd test && make test-config

- name: Run functional tests malformed data
run: cd test && make test-malformed
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
FROM golang:1.9.2
FROM golang:1.19.0

WORKDIR /go/src/github.com/splunk/splunk-logging-plugin/

COPY . /go/src/github.com/splunk/splunk-logging-plugin/

# install dep
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

RUN cd /go/src/github.com/splunk/splunk-logging-plugin && dep ensure

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /bin/splunk-logging-plugin .

FROM alpine:3.7
Expand Down
Loading