<?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 change a field name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251779#M189316</link>
    <description>&lt;P&gt;Any pattern in the event which shows the Browser names OR any pattern in the value using which those events could be filtered out? Probably one sample event of user and browser would help understand the problem better.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2016 16:07:10 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-07-11T16:07:10Z</dc:date>
    <item>
      <title>How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251775#M189312</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I'm trying to get a clearer picture of data from our Okta application however two pieces of information have the exact same field. Is there a way to change this? &lt;/P&gt;

&lt;P&gt;So the example here is we are searching for all users and we want just a list of their names. The search query below is what we use to find it, however it drags a brower name too. &lt;/P&gt;

&lt;P&gt;source=okta:event actors{}.displayName=*&lt;/P&gt;

&lt;P&gt;exampleUser&lt;BR /&gt;&lt;BR /&gt;
exampleBrowser&lt;/P&gt;

&lt;P&gt;When that query is returned, it provides us with the name of the user which is what we want but also displays the browser they used. &lt;/P&gt;

&lt;P&gt;Just to be clear, the browser information isn't tied to the one field and just appears at the end. There are just two identical fields called actors{}.displayName, one displays a browser the other a name.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 15:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251775#M189312</guid>
      <dc:creator>stegray93</dc:creator>
      <dc:date>2016-07-11T15:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251776#M189313</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=okta:event actors{}.displayName=* | eval "actors{}.displayName"=mvindex('actors{}.displayName',0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Updated Answer&lt;/STRONG&gt; based on sample event.&lt;/P&gt;

&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source=okta:event actors{}.displayName=* actors{}.objectType=User 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2016 15:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251776#M189313</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-11T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251777#M189314</link>
      <description>&lt;P&gt;Hi stegray93,&lt;/P&gt;

&lt;P&gt;I believe that you could use &lt;CODE&gt;expression regular&lt;/CODE&gt; for extract this information. Do you can send the some samples of data for help you ?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 15:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251777#M189314</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2016-07-11T15:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251778#M189315</link>
      <description>&lt;P&gt;That didn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; still showing the browser information. We originally tried a NOT command with an AND that didn't seem to like it either. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251778#M189315</guid>
      <dc:creator>stegray93</dc:creator>
      <dc:date>2016-07-11T16:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251779#M189316</link>
      <description>&lt;P&gt;Any pattern in the event which shows the Browser names OR any pattern in the value using which those events could be filtered out? Probably one sample event of user and browser would help understand the problem better.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:07:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251779#M189316</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-11T16:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251780#M189317</link>
      <description>&lt;P&gt;Please see below a standard sample event. Let me know if you need more. &lt;/P&gt;

&lt;P&gt;{ [-] &lt;BR /&gt;
    action: { [+] &lt;BR /&gt;
    }&lt;BR /&gt;&lt;BR /&gt;
    &lt;STRONG&gt;actors&lt;/STRONG&gt;: [ [-] &lt;BR /&gt;
      { [-] &lt;BR /&gt;
        &lt;STRONG&gt;displayName: Example&lt;/STRONG&gt; &lt;BR /&gt;
        id: 00u10rdjtruAa5Qbf0x7&lt;BR /&gt;&lt;BR /&gt;
        login: &lt;A href="mailto:example@flexerasoftware.com"&gt;example@flexerasoftware.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
        objectType: User&lt;BR /&gt;&lt;BR /&gt;
      } &lt;BR /&gt;
      { [-] &lt;BR /&gt;
        &lt;STRONG&gt;displayName: CHROME&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
        id: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36&lt;BR /&gt;&lt;BR /&gt;
        ipAddress: 50.233.14.1&lt;BR /&gt;&lt;BR /&gt;
        objectType: Client&lt;BR /&gt;&lt;BR /&gt;
      }&lt;BR /&gt;&lt;BR /&gt;
    ]&lt;BR /&gt;&lt;BR /&gt;
    eventId: tevs4oEpigaRlS8BgQGODiMig1468252444000&lt;BR /&gt;&lt;BR /&gt;
    published: 2016-07-11T15:54:04.000Z&lt;BR /&gt;&lt;BR /&gt;
    requestId: V4PBG-P59xfVa7HBAKck6wAABUU&lt;BR /&gt;&lt;BR /&gt;
    sessionId: 1018VGvLCuXQ6CcHoC9rltHmg&lt;BR /&gt;&lt;BR /&gt;
    targets: [ [+] &lt;BR /&gt;
    ]   &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251780#M189317</guid>
      <dc:creator>stegray93</dc:creator>
      <dc:date>2016-07-11T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251781#M189318</link>
      <description>&lt;P&gt;Try the updated answers.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251781#M189318</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-11T16:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251782#M189319</link>
      <description>&lt;P&gt;Still didn't work. When I stat them up Chrome, IE11 and FireFox are still the top 3. It's strange as it generates it as if they were their own user, then when applying the NOT to the search string for CHROME then it removes anyone who's logged in using CHROME. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:28:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251782#M189319</guid>
      <dc:creator>stegray93</dc:creator>
      <dc:date>2016-07-11T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251783#M189320</link>
      <description>&lt;P&gt;Hi below is the sample event. Parts in bold are the parts I am referring too.&lt;/P&gt;

&lt;P&gt;{ [-] &lt;BR /&gt;
 action: { [+] &lt;BR /&gt;
 } &lt;BR /&gt;
&lt;STRONG&gt;actors&lt;/STRONG&gt;: [ [-] &lt;BR /&gt;
 { [-] &lt;BR /&gt;
&lt;STRONG&gt;displayName&lt;/STRONG&gt;: Example &lt;BR /&gt;
 id: 00u10rdjtruAa5Qbf0x7 &lt;BR /&gt;
 login: &lt;A href="mailto:example@flexerasoftware.com"&gt;example@flexerasoftware.com&lt;/A&gt; &lt;BR /&gt;
 objectType: User &lt;BR /&gt;
 } &lt;BR /&gt;
 { [-] &lt;BR /&gt;
&lt;STRONG&gt;displayName&lt;/STRONG&gt;: CHROME &lt;BR /&gt;
 id: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 &lt;BR /&gt;
 ipAddress: 50.233.14.1 &lt;BR /&gt;
 objectType: Client &lt;BR /&gt;
 } &lt;BR /&gt;
 ] &lt;BR /&gt;
 eventId: tevs4oEpigaRlS8BgQGODiMig1468252444000 &lt;BR /&gt;
 published: 2016-07-11T15:54:04.000Z &lt;BR /&gt;
 requestId: V4PBG-P59xfVa7HBAKck6wAABUU &lt;BR /&gt;
 sessionId: 1018VGvLCuXQ6CcHoC9rltHmg &lt;BR /&gt;
 targets: [ [+] &lt;BR /&gt;
 ] &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251783#M189320</guid>
      <dc:creator>stegray93</dc:creator>
      <dc:date>2016-07-11T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251784#M189321</link>
      <description>&lt;P&gt;Would you be able to provide some screenshot on how the events look like upon runnign the updated query?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251784#M189321</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-11T16:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251785#M189322</link>
      <description>&lt;P&gt;Might sound like a silly question but how do I upload an image into here? &lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 08:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251785#M189322</guid>
      <dc:creator>stegray93</dc:creator>
      <dc:date>2016-07-12T08:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251786#M189323</link>
      <description>&lt;P&gt;You can upload the image to a site like &lt;A href="https://postimage.org/"&gt;https://postimage.org/&lt;/A&gt; and post the URL here.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 14:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251786#M189323</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-12T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251787#M189324</link>
      <description>&lt;P&gt;Both fields is inside of a same node of json, or not? The content of first field displayName have a fixed size? Because if the first field have the fixed size (7 bytes), could you use this regex: &lt;CODE&gt;(displayName:\s[A-Z]{6})&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 23:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-a-field-name/m-p/251787#M189324</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2016-07-18T23:11:51Z</dc:date>
    </item>
  </channel>
</rss>

