<?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 Help with search using eval and table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-using-eval-and-table/m-p/625769#M217506</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="hx_vm" LogName="Microsoft-Windows-Sysmon/Operational" "EventCode=11" ComputerName=DESKTOP-933JR8B
| eval {name} = replace("C:\Windows\SysWOW64\OneDriveSetup.exe","\", "\\")
| search Image = name
| table _time, TargetFilename&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable usage part is difficult.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 16:17:02 GMT</pubDate>
    <dc:creator>oh_sechang</dc:creator>
    <dc:date>2023-01-04T16:17:02Z</dc:date>
    <item>
      <title>Help with search using eval and table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-using-eval-and-table/m-p/625769#M217506</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="hx_vm" LogName="Microsoft-Windows-Sysmon/Operational" "EventCode=11" ComputerName=DESKTOP-933JR8B
| eval {name} = replace("C:\Windows\SysWOW64\OneDriveSetup.exe","\", "\\")
| search Image = name
| table _time, TargetFilename&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable usage part is difficult.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-using-eval-and-table/m-p/625769#M217506</guid>
      <dc:creator>oh_sechang</dc:creator>
      <dc:date>2023-01-04T16:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: query question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-using-eval-and-table/m-p/625773#M217508</link>
      <description>&lt;P&gt;Where is the question? &amp;nbsp;Three detail you need in a post: how does the data look like, what is it that you expect as result, what is the logic between data and expected result; if you post sample code, explain the result you get and why it doesn't meet requirements.&lt;/P&gt;&lt;P&gt;Looking at your sample code, I guess you do not mean &lt;FONT face="andale mono,times"&gt;| search Image = "name"&lt;/FONT&gt;, because that's exactly what the code means. &amp;nbsp;Anything on the right of an equal sign &amp;nbsp;in a search command is a string. &amp;nbsp;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="hx_vm" LogName="Microsoft-Windows-Sysmon/Operational" "EventCode=11" ComputerName=DESKTOP-933JR8B
| eval name = replace("C:\Windows\SysWOW64\OneDriveSetup.exe","\", "\\")
| where Image == name
| table _time, TargetFilename&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 04:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-using-eval-and-table/m-p/625773#M217508</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-01-04T04:43:03Z</dc:date>
    </item>
  </channel>
</rss>

