<?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: Can you help me with the following query using  the coalesce command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-query-using-the-coalesce/m-p/411817#M118766</link>
    <description>&lt;P&gt;You can use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-subjectuser=if(subjectuser=="-", targetuser, subjectuser)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or in search SPL, this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval subjectuser=if(subjectuser=="-", targetuser, subjectuser)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Nov 2018 21:41:59 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2018-11-26T21:41:59Z</dc:date>
    <item>
      <title>Can you help me with the following query using  the coalesce command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-query-using-the-coalesce/m-p/411815#M118764</link>
      <description>&lt;P&gt;I am trying this transform. Sometime the subjectuser is set and sometimes the targetuser. All works fine, but  the data coming into the subject user is a dash, and that is what user is getting set to instead of the value that is correct in target user.&lt;/P&gt;

&lt;P&gt;Is there any way around this? So, if a subject user is less than 2 characters for example?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 20:53:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-query-using-the-coalesce/m-p/411815#M118764</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-11-26T20:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following query using  the coalesce command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-query-using-the-coalesce/m-p/411816#M118765</link>
      <description>&lt;P&gt;you can add &lt;CODE&gt;| replace "-" with "" in subjectuser&lt;/CODE&gt; before coalesce&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:14:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-query-using-the-coalesce/m-p/411816#M118765</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-11-26T21:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following query using  the coalesce command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-query-using-the-coalesce/m-p/411817#M118766</link>
      <description>&lt;P&gt;You can use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-subjectuser=if(subjectuser=="-", targetuser, subjectuser)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or in search SPL, this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval subjectuser=if(subjectuser=="-", targetuser, subjectuser)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-query-using-the-coalesce/m-p/411817#M118766</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-11-26T21:41:59Z</dc:date>
    </item>
  </channel>
</rss>

