<?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 fix my search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666654#M228689</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261966"&gt;@NeAllen&lt;/a&gt;&amp;nbsp;.. you may need only one rex command (with two matchings inside that single rex).&lt;/P&gt;&lt;P&gt;the sample logs are needed, then only we can troubleshoot why the rex is not working as expected. thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 06:37:03 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2023-10-30T06:37:03Z</dc:date>
    <item>
      <title>Can you help me fix my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666644#M228683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Below is my current search at the moment,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=o365 sourcetype=* src_ip="141.*"&lt;BR /&gt;| rex field=_raw "download:(?&amp;lt;download_bytes&amp;gt;\d+)"&lt;BR /&gt;| rex field=_raw "upload:(?&amp;lt;upload_bytes&amp;gt;\d+)"&lt;BR /&gt;| dedup UserId, ClientIP&lt;BR /&gt;| table UserId, download_bytes, upload_bytes&lt;BR /&gt;| head 10&lt;BR /&gt;&lt;BR /&gt;I am trying to get downloaded bytes and uploaded bytes into a table and find out if anything suspicious is going on in the network however I have been unable to return anything other than the source ip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 03:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666644#M228683</guid>
      <dc:creator>NeAllen</dc:creator>
      <dc:date>2023-10-30T03:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me fix my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666650#M228688</link>
      <description>&lt;P&gt;Pro tip: To get help about data analytics, present sample data (in text, anonymize as needed), illustrate desired output (in text), and describe the logic between the data and output. &amp;nbsp;If you have a command that does not give the desired output, illustrate the actual output (anonymize as needed) and explain why it is different from desired output if not painfully obvious).&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 05:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666650#M228688</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-10-30T05:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me fix my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666654#M228689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261966"&gt;@NeAllen&lt;/a&gt;&amp;nbsp;.. you may need only one rex command (with two matchings inside that single rex).&lt;/P&gt;&lt;P&gt;the sample logs are needed, then only we can troubleshoot why the rex is not working as expected. thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 06:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666654#M228689</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2023-10-30T06:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me fix my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666661#M228690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261966"&gt;@NeAllen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;to debug your search I need some sample of your logs to check the regexes.&lt;/P&gt;&lt;P&gt;Then I see a strange thing.&lt;/P&gt;&lt;P&gt;when using head you shuld sort to that the most relevant events and not only then events.&lt;/P&gt;&lt;P&gt;So osrting e.g. for the sum of&amp;nbsp;&lt;SPAN&gt;download_bytes and upload_bytes, you coulr run something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=o365 sourcetype=* src_ip="141.*"
| rex field=_raw "download:(?&amp;lt;download_bytes&amp;gt;\d+)"
| rex field=_raw "upload:(?&amp;lt;upload_bytes&amp;gt;\d+)"
| eval total_bytes=download_bytes+upload_bytes
| sort 10 -total_bytes
| table UserId total_bytes download_bytes upload_bytes&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 07:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-search/m-p/666661#M228690</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-10-30T07:02:50Z</dc:date>
    </item>
  </channel>
</rss>

