<?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 Trying to get eval to push multiple values to one field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-get-eval-to-push-multiple-values-to-one-field/m-p/704658#M116554</link>
    <description>&lt;P&gt;Currently trying to get eval to give multiple returns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval mitre_category="persistence,Defense_Evasion"
| eval apt="apt1,apt2,apt3"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the values to be listed as OR. that way i get `apt2` or `apt3` instead of searching for `apt1,apt2,apt3`. I would like to know if there is a way to do this via one query instead of several if at all possible.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 16:43:15 GMT</pubDate>
    <dc:creator>doingathing</dc:creator>
    <dc:date>2024-11-18T16:43:15Z</dc:date>
    <item>
      <title>Trying to get eval to push multiple values to one field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-get-eval-to-push-multiple-values-to-one-field/m-p/704658#M116554</link>
      <description>&lt;P&gt;Currently trying to get eval to give multiple returns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval mitre_category="persistence,Defense_Evasion"
| eval apt="apt1,apt2,apt3"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the values to be listed as OR. that way i get `apt2` or `apt3` instead of searching for `apt1,apt2,apt3`. I would like to know if there is a way to do this via one query instead of several if at all possible.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 16:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-get-eval-to-push-multiple-values-to-one-field/m-p/704658#M116554</guid>
      <dc:creator>doingathing</dc:creator>
      <dc:date>2024-11-18T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get eval to push multiple values to one field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-get-eval-to-push-multiple-values-to-one-field/m-p/704663#M116557</link>
      <description>&lt;P&gt;It is not clear what you are trying to do. Are you trying to search for events where the field may have one of a number of different values?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search apt IN ("apt1","apt2","apt3")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Nov 2024 17:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-get-eval-to-push-multiple-values-to-one-field/m-p/704663#M116557</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-11-18T17:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get eval to push multiple values to one field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-get-eval-to-push-multiple-values-to-one-field/m-p/704674#M116559</link>
      <description>&lt;P&gt;Create a multi-value field using mvappend (there are other ways, too).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval mitre_category=mvappend("persistence","Defense_Evasion")
| eval apt=mvappend("apt1","apt2","apt3")&lt;/LI-CODE&gt;&lt;P&gt;The search command, however, doesn't work well with multi-value fields so this probably will not solve your problem.&amp;nbsp; What problem are you trying to solve, exactly?&amp;nbsp; Tell us about the root problem so we can offer other possible answers.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 18:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-get-eval-to-push-multiple-values-to-one-field/m-p/704674#M116559</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-11-18T18:23:11Z</dc:date>
    </item>
  </channel>
</rss>

