<?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: How to parse json from syslog messages coming in on  udp:514? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238014#M46233</link>
    <description>&lt;P&gt;no worries - You'll save money by using field=value instead of JSON, as it takes up less space &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;After you get more comfortable have a look on splunk answers for other questions relating to JSON  field extractions, I am sure it will make more sense to you.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2016 15:29:42 GMT</pubDate>
    <dc:creator>jplumsdaine22</dc:creator>
    <dc:date>2016-01-20T15:29:42Z</dc:date>
    <item>
      <title>How to parse json from syslog messages coming in on  udp:514?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238009#M46228</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I want to send the same json-encoded structures on HTTP Event collector/REST API as well as syslog udp/tcp.&lt;BR /&gt;
One of the fields in the structure is sourcetype=JSON, and I have a proper entry for JSON in prop.conf.&lt;/P&gt;

&lt;P&gt;Yet when syslog udp:514 messages come in, they are tagged sourcetype=udp:514, and the fields don't get extracted.&lt;BR /&gt;
I suppose I could enable JSON parsing for udp:514, but this seems wrong, since the majority of syslog data is not structured.&lt;/P&gt;

&lt;P&gt;How can I "deflect" these specific messages to be handled as a different sourcetype?&lt;/P&gt;

&lt;P&gt;rama&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 06:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238009#M46228</guid>
      <dc:creator>ramabu</dc:creator>
      <dc:date>2016-01-19T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse json from syslog messages coming in on  udp:514?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238010#M46229</link>
      <description>&lt;P&gt;You should probably handle this with syslog itself. That is, have syslog send these messages to a different port, and create an alternative input on your Splunk indexer. &lt;/P&gt;

&lt;P&gt;Even better, have a server that collects all your syslog messages centrally, and install a universal forwarder on that host. That way if something happens to Splunk you can still collect the data&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 17:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238010#M46229</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-01-19T17:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse json from syslog messages coming in on  udp:514?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238011#M46230</link>
      <description>&lt;P&gt;Hi plumsdaine22 &lt;BR /&gt;
(I was sure to copy-paste this...)&lt;/P&gt;

&lt;P&gt;Thank you VERY MUCH for your speedy suggestion.&lt;/P&gt;

&lt;P&gt;I tried dedicated syslog "data inputs" (with TCP:515, for instance), but no luck.&lt;/P&gt;

&lt;P&gt;I ended up serializing the structures as attribute=value list when sending to syslog, and encode_json when sending to HTTP.&lt;/P&gt;

&lt;P&gt;I 'll update this question later on if I come across a good way to accomplish my initial goal, or I become more fluent with Splunk.&lt;/P&gt;

&lt;P&gt;Thanks again&lt;BR /&gt;
rama&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238011#M46230</guid>
      <dc:creator>ramabu</dc:creator>
      <dc:date>2016-01-20T15:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse json from syslog messages coming in on  udp:514?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238012#M46231</link>
      <description>&lt;P&gt;When you say no luck, do you mean the JSON wasn't indexed properly on your new 515 input? It should work &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238012#M46231</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-01-20T15:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse json from syslog messages coming in on  udp:514?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238013#M46232</link>
      <description>&lt;P&gt;Right. I did not see fields extracted.&lt;BR /&gt;
Since I've been "talking Splunk" for ~two weeks only, I probably did things wrong.&lt;/P&gt;

&lt;P&gt;Since I have the events reported with common ground now (and they all can be picked up by the same set of reports), I am good to go.&lt;/P&gt;

&lt;P&gt;Thank you so much&lt;/P&gt;

&lt;P&gt;rama&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238013#M46232</guid>
      <dc:creator>ramabu</dc:creator>
      <dc:date>2016-01-20T15:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse json from syslog messages coming in on  udp:514?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238014#M46233</link>
      <description>&lt;P&gt;no worries - You'll save money by using field=value instead of JSON, as it takes up less space &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;After you get more comfortable have a look on splunk answers for other questions relating to JSON  field extractions, I am sure it will make more sense to you.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-json-from-syslog-messages-coming-in-on-udp-514/m-p/238014#M46233</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-01-20T15:29:42Z</dc:date>
    </item>
  </channel>
</rss>

