Skip to content

Commit

Permalink
cosmetic changes
Browse files Browse the repository at this point in the history
* minor renaming of samples
* readme adapted
  • Loading branch information
sschindler committed Oct 2, 2015
1 parent 9343593 commit 7b4ff75
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ default: journal-gateway-gelf-source

source: journal-gateway-gelf-source

sample-gelf: json-gelf-packaging
sample-gelf: json-gelf-encoding

sample-curl: curl-try-sending

Expand All @@ -24,11 +24,11 @@ journal-gateway-gelf-source: journal-gateway-gelf-source.o
journal-gateway-gelf-source.o: $(SRC_DIR)/journal-gateway-gelf-source.c
$(CC) $(CFLAGS) $(SRC_DIR)/journal-gateway-gelf-source.c -o journal-gateway-gelf-source.o

json-gelf-packaging: json-gelf-packaging.o
$(CC) json-gelf-packaging.o -ljansson $(SYSTEMD_LDFLAGS) -o json-gelf-packaging
json-gelf-encoding: json-gelf-encoding.o
$(CC) json-gelf-encoding.o -ljansson $(SYSTEMD_LDFLAGS) -o json-gelf-encoding

json-gelf-packaging.o: $(SAMPLE_DIR)/json-gelf-packaging.c
$(CC) $(CFLAGS) $(SAMPLE_DIR)/json-gelf-packaging.c -o json-gelf-packaging.o
json-gelf-encoding.o: $(SAMPLE_DIR)/json-gelf-encoding.c
$(CC) $(CFLAGS) $(SAMPLE_DIR)/json-gelf-encoding.c -o json-gelf-encoding.o

curl-try-sending: curl-try-sending.o
$(CC) curl-try-sending.o $(shell curl-config --libs) -o curl-try-sending
Expand All @@ -37,4 +37,4 @@ curl-try-sending.o: $(SAMPLE_DIR)/curl-try-sending.c
$(CC) $(CFLAGS) $(shell curl-config --cflags) $(SAMPLE_DIR)/curl-try-sending.c -o curl-try-sending.o

clean:
rm -f *.o journal-gateway-gelf-source json-gelf-packaging curl-try-sending
rm -f *.o journal-gateway-gelf-source json-gelf-encoding curl-try-sending
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Mode of Operation
| | | |
+----------------+ +-----+--+-----+
```
Installation
------------
Build
-----

You will need jansson, libcurl and the systemd-headers.

Expand Down Expand Up @@ -80,6 +80,18 @@ JOURNAL_SOURCE_DIR the source folder for the logs.

Use --help for an overview of all commands.

## Configuration

You can change two parameters in /etc/journal-gateway-gelf-source.conf:

```
JOURNAL_REMOTE_TARGET="http://127.0.0.1:12345/gelf"
JOURNAL_SOURCE_DIR="/var/log/journal/"
```

which changes the target and the source folder of the logs.
Mind the format of the target if you want to send messages to a graylog server.

Example
-------

Expand Down
File renamed without changes.

0 comments on commit 7b4ff75

Please sign in to comment.