Giter Site home page Giter Site logo

Comments (6)

spaghettidba avatar spaghettidba commented on August 28, 2024

Ah, I'm sorry, I know nothing about this.
Hey @awickham10 , can you help please?

from xesmarttarget.

awickham10 avatar awickham10 commented on August 28, 2024

It's been a while since I looked at this code but I believe it puts the "message" field in the XE in the "short_message" field in GELF.

Do you have a "message" field defined in your XE session?

from xesmarttarget.

alago197 avatar alago197 commented on August 28, 2024

Hi Andrew,

No, there is no "message" (nor "short_message") field in my XE session (see below, attached image, of autocreated fields / tested via a TableAppender too, see my config below):

    "Target": {
        // use a list of servers
        "ServerName": ["XXXXXX"],
        "SessionName": "queries_rpc_hosix5",   
        "FailOnProcessingError": false,
        "Responses": [
            {
                "__type": "TableAppenderResponse",   
                // each server will refer to itself with the {ServerName} placeholder
                // this means that in this case each server will upload the event to itself
                "ServerName": "{ServerName}",
                "DatabaseName": "testalvaro200",
                "TableName": "queriesrpc5",
                "AutoCreateTargetTable": true,   
                "UploadIntervalSeconds": 10    
            },
            {
                "__type": "GelfTcpResponse",
                "ServerName": "XX.XXX.XXX.XXX",
                "Port": "12207",
                "Encrypt": false  // ,
                //  "TrustServerCertificate": true
            },`

capture_xe_session

from xesmarttarget.

alago197 avatar alago197 commented on August 28, 2024

Just to clarify, my XE session captures the "rpc_completed" event in SQL Server....I don't have any "message" or "short_message" field in that event (I think that's the problem indeed)

from xesmarttarget.

awickham10 avatar awickham10 commented on August 28, 2024

That probably explains it. It's not currently designed in a way to be able to map XE fields to GELF fields so the XE session must have a message field. It sounds like it won't work for your situation without modifications.

from xesmarttarget.

alago197 avatar alago197 commented on August 28, 2024

Yes. Finally, I've managed to use the CsvAppender (save to a local file, then send that file/log to Graylog via a normal input stream) for this situation. Anyway, I would like to suggest a "default" insertion of the "message" (or "short_message") field, if there's no such field in the session. Even a dummy "message: content" string would suffice to comply the GELF specs (and as we can see from the capture above, the rest of the fields are present). Feel free to close this issue, of course.

from xesmarttarget.

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.