<?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 search with time specified in milliseconds in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681332#M113839</link>
    <description>&lt;P&gt;It depends on how you are "auto-generating" them - you could possibly change the process that generates them to divide by 1000?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 09:14:52 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-03-20T09:14:52Z</dc:date>
    <item>
      <title>How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681279#M113821</link>
      <description>&lt;P&gt;I have two timestamps in milliseconds: start=1710525600000, end=1710532800000.&lt;/P&gt;
&lt;P&gt;How can I search for logs between those timestamps? Let's say I want to run this query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=my_app
| search env=production
| search service=my-service&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;How to specify the time range in millis for this query?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 23:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681279#M113821</guid>
      <dc:creator>Daniel24</dc:creator>
      <dc:date>2024-03-19T23:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681287#M113824</link>
      <description>&lt;P&gt;Your examples are round seconds, but if you have epoch times to search between use the epoch with decimal places where required, so your example (which actually has no millisecond time) could be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_app earliest=1710525600.000 latest=1710532800.000 env=production service=my-service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 23:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681287#M113824</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-03-19T23:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681324#M113835</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;I'm autogenerating those milliseconds and I can't manipulate them. That's why I'm asking. I know that `earliest` and `latest` should be in seconds, but I have milliseconds as input.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 08:20:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681324#M113835</guid>
      <dc:creator>Daniel24</dc:creator>
      <dc:date>2024-03-20T08:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681332#M113839</link>
      <description>&lt;P&gt;It depends on how you are "auto-generating" them - you could possibly change the process that generates them to divide by 1000?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681332#M113839</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-20T09:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681333#M113840</link>
      <description>&lt;P&gt;No, it's impossible to change the process, I don't control it. Is there any function in Splunk that can do this conversion? When I try earliest=timestamp/1000 it doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681333#M113840</guid>
      <dc:creator>Daniel24</dc:creator>
      <dc:date>2024-03-20T09:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681335#M113841</link>
      <description>&lt;P&gt;So, it depends on how you are getting these values and including them in your search. Please provide more details. (You may be able to use Splunk to preprocess your values in a subsearch, but it depends where they come from.)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681335#M113841</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-20T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681336#M113842</link>
      <description>&lt;P&gt;I can paste those values as URL parameters. So, I can have this URL as input:&lt;BR /&gt;&lt;A href="https://my.splunkcloud.com/en-GB/app/my_app/search?q=search%20index%3Dkubernetes_app%20env%3Dproduction%20service%3Dmy-service&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=1710525600000&amp;amp;latest=1710532800000" target="_blank"&gt;https://my.splunkcloud.com/en-GB/app/my_app/search?q=search%20index%3Dkubernetes_app%20env%3Dproduction%20service%3Dmy-service&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=1710525600000&amp;amp;latest=1710532800000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681336#M113842</guid>
      <dc:creator>Daniel24</dc:creator>
      <dc:date>2024-03-20T09:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681338#M113844</link>
      <description>&lt;P&gt;Can you change the URL in any way or is that all you have to make a search and there's no other component or processed in the middle&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681338#M113844</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-03-20T09:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681339#M113845</link>
      <description>&lt;P&gt;I can't change the values that I paste into the URL. I can change the parameters in the query, but not the values. I have that number of milliseconds and can't manipulate it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681339#M113845</guid>
      <dc:creator>Daniel24</dc:creator>
      <dc:date>2024-03-20T09:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681340#M113846</link>
      <description>&lt;P&gt;If you can change the URL parameters then you can create a subsearch that takes the ms parameters as parameters e and l. In the subsearch you can do the division and rename the fields earliest and latest. When passed out of the subsearch they will be treated as earliest and latest&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681340#M113846</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-03-20T09:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681341#M113847</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This format of the query params&lt;/P&gt;&lt;P&gt;q=search%20index%3D_audit%20%5B%20%7C%20makeresults%20%7C%20eval%20e%3D1710924016000%2Cl%3D1710927616000%2C%20earliest%3De%2F1000%2C%20latest%3Dl%2F1000%20%7C%20fields%20earliest%20latest%20%5D&lt;/P&gt;&lt;P&gt;is what is required to search the _audit index for 1 hour, so if you can construct the subsearch and set the e and l parameters as in&amp;nbsp;&lt;/P&gt;&lt;P&gt;%5B%20%7C%20makeresults%20%7C%20eval%20e%3D1710924016000%2Cl%3D1710927616000%2C%20earliest%3De%2F1000%2C%20latest%3Dl%2F1000%20%7C%20fields%20earliest%20latest%20%5D&lt;/P&gt;&lt;P&gt;it will do this search&lt;/P&gt;&lt;P&gt;index=_audit [ | makeresults | eval e=1710924016000,l=1710927616000, earliest=e/1000, latest=l/1000 | fields earliest latest ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681341#M113847</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-03-20T09:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with time specified in milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681342#M113848</link>
      <description>&lt;P&gt;What does the whole query should look like?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 09:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-with-time-specified-in-milliseconds/m-p/681342#M113848</guid>
      <dc:creator>Daniel24</dc:creator>
      <dc:date>2024-03-20T09:51:57Z</dc:date>
    </item>
  </channel>
</rss>

