<?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 do you use extracted JSON fields in transactions and buckets? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113056#M23671</link>
    <description>&lt;P&gt;...many years later... I thought I would just add, I've seen similar symptoms, renaming your field before using it in eval and I believe a few other commands will keep it consistent for you.&lt;/P&gt;</description>
    <pubDate>Sat, 11 May 2019 00:08:21 GMT</pubDate>
    <dc:creator>twhitehead</dc:creator>
    <dc:date>2019-05-11T00:08:21Z</dc:date>
    <item>
      <title>How do you use extracted JSON fields in transactions and buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113051#M23666</link>
      <description>&lt;P&gt;I tried doing the following and got back nothing:&lt;BR /&gt;
sourcetype=json | transaction 'LogEntry.Content.SvctagSegmentGrp.DpsNum'&lt;/P&gt;

&lt;P&gt;but had no results. However, when I do the following, I get the expected results:&lt;BR /&gt;
sourcetype=json | eval DispatchNumber='LogEntry.Content.SvctagSegmentGrp.DpsNum' | transaction DispatchNumber&lt;/P&gt;

&lt;P&gt;Has anyone encountered this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 14:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113051#M23666</guid>
      <dc:creator>nfieglein</dc:creator>
      <dc:date>2014-11-05T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use extracted JSON fields in transactions and buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113052#M23667</link>
      <description>&lt;P&gt;Remove the single-quotes from your field name:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=json | transaction LogEntry.Content.SvctagSegmentGrp.DpsNum
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113052#M23667</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-05T16:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use extracted JSON fields in transactions and buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113053#M23668</link>
      <description>&lt;P&gt;OK, that worked for transaction, but when I do something like strptime, I need the single quotes. Is there some scorecard indicating when and when not?&lt;BR /&gt;
eval TimeOpen = now() - strptime(LogEntry.Content.StatusSegmentGrp.StatusDate, "%a %b %d %H:%M:%S %Z %Y") - Does not Work&lt;BR /&gt;
eval TimeOpen = now() - strptime('LogEntry.Content.StatusSegmentGrp.StatusDate', "%a %b %d %H:%M:%S %Z %Y") - Works&lt;/P&gt;

&lt;P&gt;transaction LogEntry.Content.StatusSegmentGrp.StatusDate - Works&lt;BR /&gt;
transaction 'LogEntry.Content.StatusSegmentGrp.StatusDate' - Does not Work&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113053#M23668</guid>
      <dc:creator>nfieglein</dc:creator>
      <dc:date>2014-11-05T16:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use extracted JSON fields in transactions and buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113054#M23669</link>
      <description>&lt;P&gt;Based on your two scenarios, it would appear that you need them when you're passing the field name to an &lt;CODE&gt;eval&lt;/CODE&gt; function (like &lt;CODE&gt;strptime&lt;/CODE&gt;), but not in the case where it's just an argument to a command (like &lt;CODE&gt;transaction&lt;/CODE&gt;). &lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113054#M23669</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-05T16:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use extracted JSON fields in transactions and buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113055#M23670</link>
      <description>&lt;P&gt;I would have thought so as well, however, when passing a field to a macro it only works with no single quotes. I think that there really needs to be a scorecard or some uniformity.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113055#M23670</guid>
      <dc:creator>nfieglein</dc:creator>
      <dc:date>2014-11-05T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use extracted JSON fields in transactions and buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113056#M23671</link>
      <description>&lt;P&gt;...many years later... I thought I would just add, I've seen similar symptoms, renaming your field before using it in eval and I believe a few other commands will keep it consistent for you.&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 00:08:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-use-extracted-JSON-fields-in-transactions-and-buckets/m-p/113056#M23671</guid>
      <dc:creator>twhitehead</dc:creator>
      <dc:date>2019-05-11T00:08:21Z</dc:date>
    </item>
  </channel>
</rss>

