Skip to content
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

Support native Elasticsearch configuration for transport mode #890

Merged

Conversation

lbudai
Copy link
Collaborator

@lbudai lbudai commented Jan 27, 2016

Previously, this feature was available only for node mode.
By supporting loading native elasticsearch config, it is possible now
to use Shield with syslog-ng.

When you want to use Shield, you have to add elasticsearch-shield-1.3.3.jar
to your classpath.

shield.ssl.keystore.path: /home/test/es/shield/client.jks
shield.ssl.keystore.password: qqq123
shield.transport.ssl: true
shield.user: es_admin:qqq123
@version: 3.8

destination d_elastic {
    elasticsearch(
        client_lib_dir(/usr/share/elasticsearch/lib)
        client_mode("transport")
        cluster("es-syslog-ng")
        index("es-syslog-ng")
        port("9300")
        server("vagrant-es-server")
        type("slng_test_type")
        resource("/opt/syslog-ng/etc/elasticsearch.yml")
    );
};

Fixes: #826

Signed-off-by: Laszlo Budai Laszlo.Budai@balabit.com

@lbudai lbudai mentioned this pull request Jan 27, 2016
Previously, this feature was available only for node mode.
By supporting loading native elasticsearch config, it is possible now
to use Shield with syslog-ng (even LDAP is working).

When you want to use Shield, you have to add elasticsearch-shield-1.3.3.jar
to your classpath.

```
shield.ssl.keystore.path: /home/test/es/shield/client.jks
shield.ssl.keystore.password: qqq123
shield.transport.ssl: true
shield.user: es_admin:qqq123
```

```
@Version: 3.8

destination d_elastic {
    elasticsearch(
        client_lib_dir(/usr/share/elasticsearch/lib)
        client_mode("transport")
        cluster("es-syslog-ng")
        index("es-syslog-ng")
        port("9300")
        server("vagrant-es-server")
        type("slng_test_type")
        resource("/opt/syslog-ng/etc/elasticsearch.yml")
    );
};

```

fixes: syslog-ng#826

Signed-off-by: Laszlo Budai <Laszlo.Budai@balabit.com>
@lbudai lbudai force-pushed the f/elastic17-shield13-with-native-config branch from b4320be to c62c665 Compare January 27, 2016 15:20
@pzoleex
Copy link
Collaborator

pzoleex commented Jan 28, 2016

for me it seems ok

@ihrwein
Copy link
Contributor

ihrwein commented Jan 28, 2016

👍 (Is it ready for merge?)

@lbudai
Copy link
Collaborator Author

lbudai commented Jan 28, 2016

yes, it is

@ihrwein ihrwein changed the title elasticsearch: Support native elasticsearch config for transport mode. Support native Elasticsearch configuration for transport mode Jan 28, 2016
@ihrwein
Copy link
Contributor

ihrwein commented Jan 28, 2016

thanks!

ihrwein added a commit that referenced this pull request Jan 28, 2016
…config

Support native Elasticsearch configuration for transport mode
@ihrwein ihrwein merged commit 0f8f336 into syslog-ng:master Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants