<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: nodejs SplunkLogger - json message is not parsed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/378286#M68416</link>
    <description>&lt;P&gt;@sdchakraborty That did not work.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2018 16:27:25 GMT</pubDate>
    <dc:creator>ngoodrich</dc:creator>
    <dc:date>2018-12-20T16:27:25Z</dc:date>
    <item>
      <title>nodejs SplunkLogger - json message is not parsed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/378284#M68414</link>
      <description>&lt;P&gt;I am using &lt;A href="http://dev.splunk.com/view/splunk-logging-javascript/SP-CAAAE65"&gt;the manual batching example&lt;/A&gt; from the docs.&lt;/P&gt;

&lt;P&gt;I am sending the following data to the &lt;CODE&gt;logger.send&lt;/CODE&gt; function:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;const obj = {
      oid: 'bluesun',
      tid: 'transaction_id',
      type: 'error',
      msg: 'I broke something bad'
    }

this.logger.send({
      message: obj,
      metadata: {
        source: 'awsBot',
        sourcetype: 'event-bus'
      },
      severity: 'error'
})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, none of the fields in the json object appear to be parsed when coming into splunk. &lt;/P&gt;

&lt;P&gt;This index is shared by other services that are logging in other formats so we can't override the entire index to expect json formatted messages, but is there a way to force these messages from this source to be parsed as json?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 23:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/378284#M68414</guid>
      <dc:creator>ngoodrich</dc:creator>
      <dc:date>2018-12-19T23:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: nodejs SplunkLogger - json message is not parsed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/378285#M68415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;will it be possible for you to make the sourcetype "_json"? That cloud resolve your issue.&lt;/P&gt;

&lt;P&gt;Sid&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 06:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/378285#M68415</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2018-12-20T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: nodejs SplunkLogger - json message is not parsed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/378286#M68416</link>
      <description>&lt;P&gt;@sdchakraborty That did not work.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 16:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/378286#M68416</guid>
      <dc:creator>ngoodrich</dc:creator>
      <dc:date>2018-12-20T16:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: nodejs SplunkLogger - json message is not parsed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/690180#M114852</link>
      <description>&lt;P&gt;I am facing the same issue. Not able to see any of the data in splunk. Did you find the solution to get the data?&lt;/P&gt;&lt;P&gt;Please let me know how to resolve this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 07:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/nodejs-SplunkLogger-json-message-is-not-parsed/m-p/690180#M114852</guid>
      <dc:creator>rohan05</dc:creator>
      <dc:date>2024-06-10T07:20:22Z</dc:date>
    </item>
  </channel>
</rss>

