Code Monkey home page Code Monkey logo

Comments (8)

urielha avatar urielha commented on May 27, 2024

It seems like a server problem, did you check the elastic logs?
Can you debug your app? Another suggestion is that you can load log4stash code and examine the exception while it occurs​..

from log4stash.

Cylindric avatar Cylindric commented on May 27, 2024

This is Elastic Cloud, so I can't see any server logs, and the app debugging doesn't show anything more than that generic error. I'd be surprised if it's on the server side, as the other apps we have that use NLog seem to be working fine.

from log4stash.

urielha avatar urielha commented on May 27, 2024

What is the Elastic version that you use?

from log4stash.

Cylindric avatar Cylindric commented on May 27, 2024

from log4stash.

HarveyEV avatar HarveyEV commented on May 27, 2024

Any update on this issue? Also, elastic cloud uses an SSL endpoint (https://myinstanceid.eu-west-1.aws.found.io:). How is that configured?

from log4stash.

urielha avatar urielha commented on May 27, 2024

Hi @HarveyEV , @Cylindric

I tried to log into elastic cloud by myself and found it roughly working.
There are errors in the check response function but the data is getting saved into the Elastic server.

Make sure you are using these configuration properties as described:

    <appender name="ElasticSearchAppender" type="log4stash.ElasticSearchAppender, log4stash">
        <Ssl>True</Ssl>
        <Servers>
            <Server>
                <Address>yourClientId.server.aws.found.io</Address>
                <Port>port_number</Port>
            </Server>
        </Servers>
        <AuthenticationMethod>
            <Basic>
                <Username>Username</Username>
                <Password>Password</Password>
            </Basic>
        </AuthenticationMethod>

        <!-- Other configurations -->
        <!-- ...... -->
    </appender>

I will investigate the response errors and hope to release an update soon.
Please update if you succeeded with the new configuration.

Uriel

from log4stash.

urielha avatar urielha commented on May 27, 2024

Good news!
Only the put template operation is throwing an error.
Until I will update the template operation I recommend you to put it by yourself and comment out it's part from the configuration.

Edit:
If this still throwing errors, please add this into the configuration:

    <IndexAsync>True</IndexAsync>

from log4stash.

urielha avatar urielha commented on May 27, 2024

Hi,
please try log4stash's new version: https://www.nuget.org/packages/log4stash/2.1.0

Note:

I upgraded the log4net version to 2.0.8.
If you still want to use the old 2.0.5 log4net just install this version of log4stash instead of the version above:
https://www.nuget.org/packages/log4stash/2.1.0-vip205

from log4stash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.