<?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 Adding additional field from one json field. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315352#M94408</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I just started discovering Splunk. I am extracting a file containing JSON data. The data looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"DevEUI_uplink": {
        "AckRequested": "1",
        "DevLrrCnt": "5",
        "rawMacCommands": "",
        "Late": "0",
        "ADRbit": "1",
        "LrrLON": "6.440177",
        "payload_hex": "00a0723a032805af1eb9006d4a9b000000",
        "Channel": "LC1",
        "FPort": "4",
        "DevAddr": "15293375"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's a lot longer but you get the idea. Splunk extracts the field fine however "payload_hex" contains data that needs to be extracted into multiple fields. For example the last for characters will be the temperature. Is it possible to do this? If so, where would I do this and how?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; suggestions about where to learn this or specific tutorials are welcome as well.&lt;/P&gt;

&lt;P&gt;Any help is much appreciated!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 06:54:12 GMT</pubDate>
    <dc:creator>jankappe</dc:creator>
    <dc:date>2017-04-07T06:54:12Z</dc:date>
    <item>
      <title>Adding additional field from one json field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315352#M94408</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I just started discovering Splunk. I am extracting a file containing JSON data. The data looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"DevEUI_uplink": {
        "AckRequested": "1",
        "DevLrrCnt": "5",
        "rawMacCommands": "",
        "Late": "0",
        "ADRbit": "1",
        "LrrLON": "6.440177",
        "payload_hex": "00a0723a032805af1eb9006d4a9b000000",
        "Channel": "LC1",
        "FPort": "4",
        "DevAddr": "15293375"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's a lot longer but you get the idea. Splunk extracts the field fine however "payload_hex" contains data that needs to be extracted into multiple fields. For example the last for characters will be the temperature. Is it possible to do this? If so, where would I do this and how?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; suggestions about where to learn this or specific tutorials are welcome as well.&lt;/P&gt;

&lt;P&gt;Any help is much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315352#M94408</guid>
      <dc:creator>jankappe</dc:creator>
      <dc:date>2017-04-07T06:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional field from one json field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315353#M94409</link>
      <description>&lt;P&gt;You can do it by adding search time extraction in props.conf. &lt;BR /&gt;
i.e &lt;CODE&gt;EVAL-temprature= substr(DevEUI_uplink. payload_hex,0,4)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can also write REGEX as well. Please refer docs at &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 12:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315353#M94409</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-04-07T12:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional field from one json field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315354#M94410</link>
      <description>&lt;P&gt;Thank you, i will look into it!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 12:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315354#M94410</guid>
      <dc:creator>jankappe</dc:creator>
      <dc:date>2017-04-07T12:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional field from one json field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315355#M94411</link>
      <description>&lt;P&gt;If that solved your issue, please accept the answer.  If it was helpful but did not completely solve the issue, then you can upvote it instead.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 15:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-additional-field-from-one-json-field/m-p/315355#M94411</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-07T15:48:37Z</dc:date>
    </item>
  </channel>
</rss>

